Wang Fu Egypt

🔁 Loops: do it again

Unit 2 · Loops & decisions · 9 min

To move a robot 10 steps you don’t write “forward” 10 times; you write “repeat 10: forward”. That is a loop. A square = repeat 4: forward, turn right. Loops make programs shorter and less error-prone.

Words in this lesson

  • loop — loop
  • repeat — repeat
  • program — program

Project: Be a human robot: ask a friend to write you an instruction card using “repeat”, then walk it out in the room.

Back to track · Learn

埃中王府
Wang Fu Egypt
加载中…