🔀
Lesson 3
Conditions and loops: the brain
📖 Lesson
──▶
🎯 Quiz — pick the translation
──▶
✅ Lesson done
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 age >= 18: grant access
- ●while tired: keep sleeping
- ●for day in week: check inbox
🔀
if — when condition
🔁
while — as long as true
🔂
for — for each item
⛔
break — stop the loop
↩️
return — give back result
➡️
else — otherwise
🎯
Test yourself!
Quiz — pick the translation →
🖨 Worksheet
Practice the topic with the trainer — like after class