🔀
Leçon 3
Conditions and loops: the brain
📖 Leçon
──▶
🎯 Quiz — choisis la traduction
──▶
✅ Leçon terminée
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 — si condition
🔁
while — tant que vrai
🔂
for — pour chaque
⛔
break — stoppe la boucle
↩️
return — renvoie le résultat
➡️
else — sinon
🎯
Teste-toi !
Quiz — choisis la traduction →
🖨 Fiche de travail
Consolide le sujet avec l’entraîneur — comme après le cours