+ 4
Python integer declaration
How to declare an identifier as type integer ?
2 Respuestas
+ 3
Python is dynamically typed, which means that you don't have to declare what type each variable is.
To assign the value 3 to the variable “num” just do:
num = 3
+ 3
And it converts type for you too.
Try in code playground :
print(4/2)
becomes a float