0Pricing
Coding for Kids · Lesson

Repeating Movement

Use loops to keep things moving.

Repeating Movement is a free Coding for Kids lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Coding for Kids learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Keep It Moving!

Hi animator! 🎬 Last time we moved step by step.

Today we use loops to keep moving without typing each step!

Loops Save Work

Remember loops? A for loop repeats steps for us. 🔁

Perfect for animation, where we move many times!

Move With a Loop

This loop moves the turtle forward 10 times. Smooth gliding! 🐢💨

import turtle

t = turtle.Turtle()
for i in range(10):
    t.forward(20)
turtle.done()

Ten Little Hops

The loop moved the turtle forward 20 steps, ten times! 🐢

That is 200 steps total, made of small moves.

Using the Counter

In for i in range(10):, i counts: 0, 1, 2, 3... 🔢

We can use i to change the move each time!

Growing Steps

Watch the turtle move farther each loop using i! 📈

import turtle

t = turtle.Turtle()
for i in range(8):
    t.forward(i * 10)
    t.right(45)
turtle.done()

A Spiral Appears!

Whoa! 🌀 Because the steps grew bigger, the turtle made a spiral!

Loops plus changing numbers make cool patterns.

Moving in a Circle

If we move forward a little and turn a little, many times, we go in a circle! ⭕

import turtle

t = turtle.Turtle()
for i in range(36):
    t.forward(10)
    t.right(10)
turtle.done()

Round and Round

The turtle walked in a circle! 🔵

36 small moves and turns made a smooth round shape.

Loops Make Motion Easy

Without loops, animation would need hundreds of lines. 😵

With loops, just a few lines keep things moving! 🎉

Repeat Master!

You learned to repeat movement with for loops and use the counter i. 🔁🏆

Quick Check

Loop quiz! 🔁

Loop Champion!

Awesome! 🎉 You can keep things moving with loops.

Next lesson: making things bounce off the edges! 🏀

Frequently asked questions

Is the “Repeating Movement” lesson free?

Yes — the full text of “Repeating Movement” is free to read here on the web, and the Coding for Kids course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Coding for Kids course, upgrade to CoddyKit PRO.

What will I learn in “Repeating Movement”?

Use loops to keep things moving. You practise Coding for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Coding for Kids?

No prior experience is required. Coding for Kids on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Repeating Movement” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Coding for Kids lesson?

Yes. Every Coding for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Making Things Move
  2. Repeating Movement
  3. Bouncing Around
  4. Your Own Animation
← Back to Coding for Kids