K Kapnula
📚
Lekce 13 · třída P2

Lists & dicts: real-life data

📖 Lekce ──▶ 🎯 Kvíz — vyber překlad ──▶ ✅ Lekce hotová
4 × 5 = 20

A list is a box with ordered slots: shopping = ["milk", "bread", "apples"]. A dict is an address book: phone = {"Mum": "+49 151…"} — the name gives the number instantly.

Kapnula itself is lists and dicts: a city's listings = a list of dicts {title, price, photo}. Your quiz from the last project? Also a list!

💡 Task: create friends = {"name": "hobby"} for three friends and print nicely: for name, hobby in friends.items(): print(name, "—", hobby)
🎯
Vyzkoušej se!
Upevni téma trenérem — jako po hodině
Kvíz — vyber překlad → 🖨 Pracovní list
← Předchozí Další →
💶 EUR 🇺🇸 1.09 USD 🇷🇺 90.17 RUB 🇵🇱 4.47 PLN 🇺🇦 49.40 UAH EZB · daily
⛽ Fuel E5 1.789€ E10 1.729€ Diesel 2.009€ Berlin · tankerkönig.de