Lesson 2: Variables & Data

Variables are like "boxes" where you can store information to use later. In Python, you don't need to tell the computer what type of box you need (like in other languages), it figures it out by itself!

How to create a variable?

Use the = symbol to put a value into a name.

name = "Vincenzo"
age = 30

Common Data Types

Your Objective

Let's try to create a variable for your name and one for your birth year, then print them.

  1. Create a variable name with your name.
  2. Create a variable year with the current year (e.g., 2026).
  3. Use print(name, year) to see them together.
main.py
Initializing Python Environment...