K Kapnula
👤
🔀
Lesson 3

Conditions and loops: the brain

📖 Lesson ──▶ 🎯 Quiz — pick the translation ──▶ ✅ Lesson done
InputSteps by rulesResult

If it rains — take an umbrella: that is if. Do exercise every morning — that is a loop. Every program is built from these two bricks.

🔀
if — when condition
🔁
while — as long as true
🔂
for — for each item
⛔
break — stop the loop
↩️
return — give back result
➡️
else — otherwise
🎯
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