0

Use a repeat block

  1. repeat 3 times
    move right
    collect the star

    A shorter way

    Three move right blocks make a long program. One repeat block does the same job. It is shorter and easy to read.

  2. repeat 5 times
    move right

    The number says how many

    The number tells how many times. Repeat 5 times moves the robot 5 squares. Change the number to change the trip.

  3. repeat 4 times
    move down
    collect the star

    Count, then repeat

    Count the squares first. The star is 4 squares down. So the repeat number is 4.

  4. move down
    repeat 3 times
    move right

    A step, then a repeat

    A program can have a block before the repeat. The robot goes down once. Then the repeat moves it right 3 times.

  5. repeat 3 times
    move right
    move up

    Repeat a group

    A repeat can hold a group of blocks. Move right and move up sit inside. The whole group runs 3 times.

For parents

Goal: Your child learns to use a repeat block to do a step again and again, and picks the right number for it.

  • Ask: how many times does the robot do the same step? That is the repeat number.
  • Read a repeat out loud the long way, saying the block inside once for each time.
  • In the labs your child builds programs with repeat blocks and guesses where a repeat takes the robot. Fewer blocks earn more stars.

Away from the screen: Write repeat cards on paper, like repeat 4 times: jump, or repeat 2 times: clap and spin. Your child picks a card and does the moves, counting out loud.

Coding · Loops
Back to top