← Python Roadmap Home

02. Variables

Variables, types, naming rules

Variable = box jisme value rakhi jaati hai. Python me type likhne ki zaroorat nahi — auto detect.

name = "Riya"
age = 18
height = 5.4
is_student = True
print(name, age, height, is_student)
Output:
Riya 18 5.4 True

Types

Type dekhne ke liye: type(age)