K Kapnula
👤
📦
Lesson 2

Variables: boxes with data

📖 Lesson ──▶ 🎯 Quiz — pick the translation ──▶ ✅ Lesson done
4 × 5 = 20

A variable is a named box. You write name = "Anna" — and the box called name holds the text "Anna". Data has types: numbers, strings, true/false.

🔢
Integer: 42
🔤
String: "Hello"
✅
Boolean: true/false
💧
Float: 3.14
📋
List: [1,2,3]
🕳
Null: nothing inside
💡 age = 16 is an assignment. age == 16 is the question "is it 16?". One = stores, two == asks!
🎯
Test yourself!
Practice the topic with the trainer — like after class
Quiz — pick the translation → 🖨 Worksheet
← Previous Next →
⛅ 13° Potsdam 💨 10 km/h
💶 EUR 🇺🇸 1.12 USD 🇷🇺 93.87 RUB 🇵🇱 4.39 PLN 🇺🇦 50.32 UAH EZB · daily
⛽ Fuel E5 2.159€ E10 2.099€ Diesel 2.179€ Berlin · tankerkönig.de