Variables and Data Types
Variables and Data Types
Python supports multiple data types including integers, floats, strings, and booleans.
# Variables in Python
name = "Alice"
age = 30
height = 5.7
is_student = False
print(f"{name} is {age} years old")
Python uses dynamic typing, so you don't need to declare variable types explicitly.