Python Variables
Last updated: 28 Sep 2026
Python variables need no type declaration. The type comes from the value.
age = 20
price = 99.5
name = "Asha"
print(type(age)) # <class 'int'>
Last updated: 28 Sep 2026
Python variables need no type declaration. The type comes from the value.
age = 20
price = 99.5
name = "Asha"
print(type(age)) # <class 'int'>