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.
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
- int
- float
- complex
- bool
- str
- bytes
- bytearry
- range
- list
- tuple
- set
- frozenset
- dict
- None
- type(): To check the type of variable.
- id() To get address of object
- print() To print the value
No comments:
Post a Comment