Learn Without Walls
← Module 5 Home Lesson 1 of 4 Next Lesson →

Lesson 1: Spotting Repetition

Estimated time: 15-20 minutes | Screen-Free Activity

What You Will Learn

By the end of this lesson, your child will be able to:

Repetition Is Everywhere

Have you ever noticed how many things in your life happen over and over again? You wake up every morning. You eat breakfast every day. Your heart beats again and again and again, all day long, without stopping.

When something happens over and over, we call that repetition. And here is a fun fact: repetition is one of the most important ideas in coding. Coders call it a loop.

Repetition means doing the same thing more than once. A loop is a set of steps that repeat. When coders say "loop," they mean "do this thing again and again."

Talk About It (Parent and Child)

Ask your child: "What is something you do every single day, the same way, at the same time?" Let them think of a few examples. Bedtime routines, walking to school, and mealtimes are all great answers.

Loops in Your Daily Routine

Think about your morning. You probably do many of the same things every day:

Your Morning Loop

Every school day, you probably:

  1. Wake up
  2. Get dressed
  3. Eat breakfast
  4. Brush your teeth
  5. Grab your backpack
  6. Head to school

Then the next school day, you do it all again! Those same steps repeat Monday, Tuesday, Wednesday, Thursday, and Friday. That is a loop that runs 5 times each week.

Here is another one. When you eat a bowl of cereal, you do this:

The Cereal Loop

  1. Scoop cereal with the spoon
  2. Lift the spoon to your mouth
  3. Eat the cereal
  4. Lower the spoon back to the bowl

You repeat those four steps over and over until the bowl is empty. A coder would say: "Repeat until the bowl is empty: scoop, lift, eat, lower."

Loops in Music

Music is full of loops! Think about your favorite song. Does it have a part that repeats? Most songs have a chorus -- a section that comes back again and again between verses.

Musical Loops

  • Chorus: The part of a song that repeats with the same words and melody
  • Beat: The steady pulse you tap your foot to -- it loops the entire song
  • Rhythm patterns: Short patterns of sounds that repeat, like "clap-clap-rest, clap-clap-rest"

Even simple nursery rhymes use loops. In "Row, Row, Row Your Boat," the tune repeats. In "Twinkle, Twinkle, Little Star," the first and last parts are the same melody repeated.

Screen-Free Activity: Clap a Loop (3 minutes)

What to do:

  1. Create a short clapping pattern. For example: clap, clap, snap.
  2. Repeat it 4 times in a row.
  3. Now have your child create their own clapping pattern and repeat it.
  4. Try making it longer: clap, clap, snap, stomp. Repeat 4 times.

You just made a loop with your hands! The pattern is the "body" of the loop, and 4 times is how many times it repeats.

Loops in Nature

Nature is full of beautiful loops. Some loops are fast, and some are very slow:

Talk About It (Parent and Child)

Ask your child: "Which nature loop is the fastest? Which is the slowest?" Then ask: "Can you think of any other loops in nature?" Ideas might include the moon's phases, tides coming in and going out, or a spider spinning a web strand by strand.

Loops in Games and Play

Loops show up in games too. Think about these:

Game Loops

  • Jump rope: Swing the rope, jump, swing the rope, jump -- repeat until you miss.
  • Board games: Roll the dice, move your piece, wait for your turn again. Repeat until someone wins.
  • Bouncing a ball: Push the ball down, it bounces up, push it down again. Repeat.
  • Tag: Run, chase, tag someone -- now they chase. The chasing loop keeps going.
  • Video games: The game checks your input, updates the screen, checks your input again -- this loop runs many times per second!

Even taking turns is a loop. In a card game with three players, the turn order goes: Player 1, Player 2, Player 3, Player 1, Player 2, Player 3, and so on. The loop repeats until the game ends.

Activity: Loop Detectives

Screen-Free Activity (10 minutes)

What you need: Paper and a pencil (or just talk it out together).

What to do:

  1. Go on a "Loop Hunt" around your house or neighborhood. Look for things that repeat.
  2. Try to find at least one loop in each of these categories:
    • A loop in your daily routine
    • A loop in nature
    • A loop in a game or toy
    • A loop in music or a song
    • A loop in the kitchen (think about cooking or washing dishes!)
  3. For each loop you find, say: "The loop is [what repeats], and it repeats [how many times or until what happens]."

Bonus challenge: Find a loop that never stops (like your heartbeat) and a loop that stops after a certain number of times (like the days of the week repeating 52 times in a year).

Check Your Understanding

1. What does "repetition" mean?

Answer: Repetition means doing the same thing more than once. It is when something happens over and over again.

2. What is a loop?

Answer: A loop is a set of steps that repeat. Coders use the word "loop" to describe instructions that the computer does again and again.

3. Can you name two examples of loops in nature?

Answer: Any two from: the day/night cycle, the seasons (spring, summer, fall, winter), the water cycle, heartbeats, the moon's phases, tides, or the life cycle of a butterfly. There are many correct answers!

Key Takeaways

Ready for More?

Next Lesson

In Lesson 2, you will learn why loops save work and how coders use them to avoid repeating themselves.

Start Lesson 2

Module Progress

You have completed Lesson 1! Three more lessons to go in Module 5.