TalentJR apps
A loop repeats the same commands. repeat 4 { forward 10 cm; turn right 90° } drives four equal sides with four right-angle turns — a square, and the robot drives 4 × 10 = 40 cm in all. For any regular shape with n sides, each turn is 360 ÷ n degrees: 120° for a triangle, 72° for a pentagon, 60° for a hexagon and 45° for an octagon. A loop inside a loop multiplies: repeat 3 { repeat 4 {…} } runs the inside 12 times.
✓ You passed this lesson’s test.
Repeat the side — “a loop repeats forward + turn; the turns of a closed shape add up to 360°”
Use it for: Drawing shapes with a robot or a turtle program, perimeter and angles in maths, and loops in coding.
Check: 4 turns of 90° = 360°, so the square closes ✓
▶ Watch it animated✓ Written and checked by the TalentJR team · Updated 13 Oct 2026 · How we make our lessons
Work it out in your head or on paper, then tap your answer — or type it and press Check. Stuck? Press “Show me how”.
Right: 0 · Tried: 0
20 questions. Check each answer, then go to the next one. Get 16 or more right to pass.
🏅 Sign in with Google to earn the 🔁 Shape Looper badge when you pass — and a certificate when you finish all 10 lessons of Part 3 · Programming robots. You can still take the test without signing in.
Why does it work? When should you use it? Ask in English, मराठी or हिंदी.
Sign in with Google to ask Free — 20 questions a day.
Prefer a real teacher? TalentJR teachers take live online classes anywhere in India. Tell us what you need and our team will call you with timings and fees.