Use 'type()' method to know the datatype of the value stored in a variable | Python

Опубликовано: 21 Май 2026
на канале: Kunal Attri
7
1

How to get to know the datatype of the data stored in a variable?
You can use 'type()' method to know the datatype of the value stored in a variable. It takes a variable as a argument and it returns the datatype class.
In ourcode, the datatype class is being displayed on screen by print command.

This Program Code:-
Github: https://github.com/Kunal-Attri/Python...
Drive: https://drive.google.com/file/d/1Y3-w...

All Python Codes:-
Github: https://github.com/Kunal-Attri/Python...
Drive: https://drive.google.com/drive/folder...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Subscribe to us for more videos!!!

Music: Ikson - Lights

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Python:    • Python  

Pokemon FireRed:    • Pokemon FireRed  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you own any rights to the content we use in our videos and want us to provide credits or remove the content , kindly contact us at [email protected] . We will solve it out with a hypothetic cup of tea(●'◡'●) .

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Instagram :-   / kunal.attri_  
Github:- https://github.com/kunal-attri

Like And Subscribe our Channel.......