← Back to Library
Lesson PlanFreeEN

B3: Loops - Repeat X with Dot

Students will review their previous programming with sequencing, loops, and the Repeat Forever block. They will also be introduced to using the Repeat block to define a specific number of loops. They will use Blockly preset programs and Challenge Cards to practice their new skills.

Gr. 1–1
B3: Loops - Repeat X with Dot

Lesson

Overview

Description

Students will review their previous programming with sequencing, loops, and the Repeat Forever block. They will also be introduced to using the Repeat block to define a specific number of loops. They will use Blockly preset programs and Challenge Cards to practice their new skills.

Objectives

  • understand the purpose of using the Repeat block

  • use the Repeat block to revise code

  • omplete coding challenges in an iterative process

Before the Lesson

Prior Experience

It is recommended that students complete:

  • Level A Lessons: All

  • Level B: Lesson 1-2

  • [Optional] Level A Challenge Cards: All

  • [Optional] Level B Challenge Cards: B 1.1-1.3

You can purchase our Learn to Code Challenge Card sets and Curriculum Guide here: https://store.makewonder.com/#/education

Preparation

  • Fully charge the tablets and robots.

  • Install the Wonder Workshop Blockly app on each tablet.

Review

Loops

  1. Briefly review how students have used loops with Dash and Dot before.

    • Say, “We created a dance for Dash using loops. We told Dash what dance moves to do. Then we told Dash to repeat the moves again and again.”

  2. Say, “Before we used loops, we programmed a dance for Dash. What did the code for Dash’s dance look like without loops?”

    • Sample response: “When we created the code for the dance without loops, it was very long.”

  3. Ask, “What did the code for Dash’s dance look like when you used loops?”

    • Sample response: “The dance was much shorter and easier to create when we used loops.”

  4. Ask, “Why do we use loops?”

    • Sample response: “We use loops when we want to repeat the same sequence of code over and over again. It makes our code easier to write.”

Code.org Connections (Optional)

  1. Review Code.org’s lesson focusing on loops: https://studio.code.org/s/courseb-draft/stage/9/puzzle/4

  2. Then ask: “How was using loops helpful in solving this puzzle?”

    • Sample response: “Using loops meant I could use fewer blocks in my code, which means it took me less time to create it.”

Direct Instruction

Introduction

  1. Project your tablet screen and open the Blockly app.

  2. Say, "You have been using the Repeat Forever block when you want Dash or Dot to make loops. That means the loop never stops. What if you want a loop to stop after a specific number of times?"

  3. Say, “In this lesson, you will use a Repeat block. When you use a Repeat Forever block, the sequence inside the block continues to repeat until you tell it to stop. However, a Repeat block repeats the code sequence a specific number of times."

  4. Review a real-life example where you would want something repeated a specific number of times, such as:

    • A drummer repeats a beat a specific number of times until the end of a song.

    • A video game player repeats movements a specific number of times to get to the end of a level.

  5. Show students where they can find the Repeat block in the Control menu. (Note: This is the block labeled Repeat [X] times.)

    Art Notes: Screenshot of Control menu open highlighting the Repeat block

Quick Check

  • What is a loop? (Sample response: “A loop repeats the bits of code placed inside it.”)

  • What is the difference between the Repeat Forever and the Repeat block? (Sample response: “The Repeat block lets us choose how many times the code is repeated.”)

  • How do you change the number of times you want a code to repeat in Blockly? (Sample response: “You tap on the Repeat block and then change the number.”)

Guided Practice

Activity: Zoo Who

  1. In Blockly, go to the Create New Project menu and select the Zoo Who preset program. Then tap “create.”

    Zoo Who
  2. Say, “Dot wants to practice repeating a task.”

    • Play the program and have students share what they notice. (Sample response: “Dot repeated the steps 5 times.”)

    • Select a student to point out the Repeat block.

  3. Ask, “What would happen if we changed the number in the Repeat block?”

    • Have students take turns sharing their guesses. (Sample response: “Dot would make more animal sounds!”)

    • Select student volunteers to suggest what number to use in the Repeat block.

    • Tap the Repeat block and then use the pop-up menu to change the number of times the loop repeats. Then play the program.

  4. Continue selecting student volunteers to change the number in the Repeat block and play the program to show students how Dot’s behavior changes each time.

Quick Check

  • What is a loop?

  • When would you like to repeat something a specific number of times?

  • Where do you find the Repeat block in Blockly?

Independent Practice

Instructions

Have students work on the following activities in small groups (ideally 2-3 students per robot).

Encourage students to share tablet and robot time. Have them establish and rotate through roles such as:

  • Lead Programmer: Holds the tablet and manipulates the code.

  • Robot Wrangler: Retrieves and resets the robot after every program attempt.

  • Documentarian: Records group results, thoughts, and progress. Illustrates group designs and ideas.

When students work together while coding, they're able to help each other identify mistakes and develop creative solutions!

Who Zoo Extension

  1. Have students use the Wonder Journal: Dot Planning or General Planning worksheet to design ways to add to or alter the Zoo Who preset program. They can:

  • Change the sequence.

  • Change the number in the Repeat block.

  • Add another Repeat block.

  • Put lights and more animations or sounds in the Repeat block.

  1. After they finish revising the program, have students:

  • Complete a Wonder Journal: Reflection worksheet.

  • Take a screenshot of their Blockly code.

  • Take a video of Dash while the code is running.

Challenge Cards

  1. You can purchase our Learn to Code Challenge Card sets and Curriculum Guide here: https://logicsacademy.com/store/

  2. Have students complete the following Challenge Cards:

    • B 2.1: Petting Zoo

    • B 2.2: Quick, Hide!

    • B 2.3: You Are Getting Sleepy . . .

  3. For each challenge, encourage students to:

    • Use the Wonder Journal: Dot Planning or General Planning worksheet to discuss how they can complete the challenge.

    • Review the Troubleshooting and Problem Solving & Debugging worksheet if they run into any problems with their code.

  4. After they finish each challenge, have students:

    • Complete a Wonder Journal: Reflection worksheet.

    • Take a screenshot of their Blockly code.

    • Take a video of Dot while the code is running.

    • Update their Challenge Card Checklists.

Wrap Up

Student Presentations

  1. Have student groups take turns sharing one of their programs with the class. Encourage them to:

  2. Explain their design thinking (e.g., "We chose to change the number of times the algorithm repeated so we could see how many animal sounds Dot would make").

  3. Share any obstacles and difficulties they overcame during the activity (e.g., "We weren’t sure how to change the number of times something repeats, but then we learned that if we tap on the number on the block, a menu pops up where we can choose a different number").

  4. Encourage students to ask each other how they accomplished different objectives and give each other feedback on their programs. Possible questions/feedback includes:

    • "How did you (program Dot to repeat two different sounds)?"

    • "I like how you (changed Dot’s sequence and then added another Repeat Forever block)."

    • "What if you (had Dot repeat more sequences)?"

Follow-Up Questions/Discussion

  • Describe a way you use loops in your life. (Sample response: “I use loops when I chew my food. I open and close my mouth over and over until I swallow.”)

  • How was the Repeat block helpful in this code? (Sample response: “Using the Repeat block helped me include all the animal sounds without having to add a separate block for each one.”)

Assessment

  • Use our Evaluation Rubric to review students' work and presentations.

  • [Optional] Share your students' work with the world using @logicsacademy and #dashanddot!

Educational Standards

CSTA

CSTA

  • 1A-AP-10: Develop programs with sequences and simple loops, to express ideas or address a problem.

  • 1A-AP-11: Decompose (break down) the steps needed to solve a problem into a precise sequence of instructions.

  • 1A-AP-12: Develop a plan that describes a program’s sequence of events, goals, and expected outcomes.

  • 1A-AP-14: Debug (identify and fix) errors in an algorithm or program that includes sequences and simple loops.

  • 1A-AP-15: Using correct terminology, describe steps taken and choices made during the iterative process of program development.

ISTE

ISTE

  • 4d: Exhibit a tolerance for ambiguity, perseverance, and the capacity to work with open-ended problems.

  • 5a: Formulate problem definitions suited for technology-assisted methods such as data analysis, abstract models and algorithmic thinking in exploring and finding solutions.

  • 6b: Create original works or responsibly repurpose or remix digital resources into new creations.

  • 7c: Contribute constructively to project teams, assuming various roles and responsibilities to work effectively toward a common goal.

NGSS

NGSS

  • K-2-ETS1-1: Ask questions, make observations, and gather information about a situation people want to change to define a simple problem that can be solved through the development of a new or improved object or tool.

  • K-2-ETS1-2: Develop a simple sketch, drawing, or physical model to illustrate how the shape of an object helps it function as needed to solve a given problem.

Common Core

Common Core

  • CCSS.ELA-LITERACY.W.2.8: Recall information from experiences or gather information from provided sources to answer a question.

  • CCSS.ELA-LITERACY.SL.1.1: Participate in collaborative conversations with diverse partners about grade 1 topics and texts with peers and adults in small and larger groups.

  • CCSS.ELA-LITERACY.SL.1.2: Ask and answer questions about key details in a text read aloud or information presented orally or through other media.

Alberta - Grade 1 - ICT

Grade 1

ICT

C5: Students will use technology to aid collaboration during inquiry.

C6: Students will use technology to investigate and/or solve problems.

F6: Students will demonstrate a basic understanding of the operating skills required in a variety of technologies.

Ontario - Grade 1 - Mathematics

Grade 1

Mathematics: Algebra (Coding)

C3.1 solve problems and create computational representations of mathematical situations by writing and executing code, including code that involves sequential events

Nova Scotia - Grade 1 - ICT

Grade 1

ICT 

Outcome 5: Students will be expected to, with teacher assistance, use grade-appropriate digital tools to explore ideas, create original works, and represent their learning, both individually and collaboratively.

Outcome 9: Students will be expected to, with teacher assistance,

  • use grade-appropriate ICT terminology 

  • follow verbal instructions and visual reminders to begin safely operating computers and grade-appropriate digital devices

British Columbia - Grade 1 - ADST

Grade 1

ADST 

• Use trial and error to make changes, solve problems, or incorporate new ideas from self or others 

• Develop their skills and add new ones through play and collaborative work