Data Types In Python

Data type represent the type of data present inside a variable.
In python we are not  required to  specify the type explicitly based on value  provided the type will be assigned automatically.
Hence python is Dynamically Typed Language.

Python contain the following inbuilt data types
  1. int
  2. float
  3. complex
  4. bool
  5. str
  6. bytes
  7. bytearry
  8. range
  9. list
  10. tuple
  11. set
  12. frozenset
  13. dict
  14. None
Note: Python contain several inbuilt functions
  1. type(): To check the type of variable.
  2. id() To get address of object
  3. print() To print the value

*In Python everything is object*

No comments:

Post a Comment

Featured Post

Core and Advance Python

                      Language Fundamentals