K Kapnula
👤
📦
课程 2

Variables: boxes with data

📖 课程 ──▶ 🎯 测验——选择翻译 ──▶ ✅ 本课已完成
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.

🔢
整数: 42
🔤
字符串: "你好"
✅
布尔: 真/假
💧
小数: 3.14
📋
列表: [1,2,3]
🕳
空值: 无内容
💡 age = 16 is an assignment. age == 16 is the question "is it 16?". One = stores, two == asks!
🎯
测验一下吧!
用练习巩固主题——就像课后练习
测验——选择翻译 → 🖨 练习纸
← 上一课 下一课 →
⛅ 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