Python comes with the following built-in data types:
Announcement
You can find all my latest posts on medium.
- integer
- floating points
- null object
- boolean (true/false)
You can find the type of variable using the “type()” builtin function:
[python]
=>=>=> x = 10
=>=>=> type(x)
<class ‘int’=>
=>=>=> y = 10.2345
=>=>=> type(y)
<class ‘float’=>
=>=>=> z = "hello world"
=>=>=> type(z)
<class ‘str’=>
=>=>=>
[/python]
As you can, python automatically recognised that automatically assigns a type, after it evaluates it.