Back

Variables and Data Types

Python variables don't need a type declaration: Python figures it out automatically. This is called dynamic typing.

name = "Daniel"        # string
age = 20               # integer
height = 5.11          # float
is_active = True       # boolean
skills = ["JS", "Python"]  # list
user = {"name": "Daniel"}  # dictionary

# f-strings (like template literals)
print(f"Hello, {name}! You are {age} years old.")

Roadmap