← Back to Library
Lesson PlanFreeFR
(Francais) B2: Unplugged - Loops
Description Level B, Lesson 2: Students will learn the definition and function of loops. Students will use loops to create a dance for Dash. Objectives Define a loop. Identify examples of how they use

Educational Standards
CSTA
ISTE
NGSS
Common Core
Independent Practice
Instructions
Have students work on the following activity in small groups.
When students work together while coding, they’re able to help each other identify mistakes and develop creative solutions!
- Have students use the Dash Dance Moves Worksheet to plan a dance for Dash.
- Make sure each group has at least 4 copies of the Dash Dance Moves Worksheet.
- Have students cut out the dance, Repeat blocks, and Dance Runway.
- Have them arrange the blocks in a dance sequence.
- When they want Dash to repeat a move, have them place a Repeat block under that dance move.
- Have students tape together all of their Dance Runways to make one long strip.
- Once their dance design is complete, have students glue their dance sequence on the Dance Runway.
- Play music and have students pretend they are Dash. Have them perform the dance they designed.
- [Optional] Have students switch dances with another group and have students follow that group’s dance moves.
- [Optional] If your school owns a Dash robot, program Dash to do the dance you created.
Instructions
Introduction
- Show the Code.org video about loops: https://studio.code.org/s/coursea-draft/stage/9/puzzle/4
- Say, “This video showed us how loops work. Loops let us repeat sequences of code over and over as many times as we want. Loops make our code easier and faster to write.”
- Review some real life examples of loops and encourage students to suggest examples as well:
- When you drive a car on a racetrack, you make one loop around the track. Then you repeat the loop until the race ends.
- When you bake cookies, you make ball of cookie dough and put it on a baking sheet. Then you repeat that step over and over again.
- When you perform a dance, sometimes you repeat the same movements again and again.
Quick Check
- What is a loop? (Sample response: “Loops let us repeat sequences of code over and over as many times as we want.”)
- Why are loops important? (Sample response: “Using loops makes our code easier and faster to write.”)
Review
Sequence Review
- Briefly review how students have used sequences and loops in previous lessons.
- Say, “Up until now we have written code in a sequence. Our code was shown exactly how it was run in the computer. If we wanted to predict what would happen, we could follow our code from top to bottom.”
- Ask, “What is a loop? (Sample response: “A loop repeats a sequence of code over and over.”)
- Why are loops important? (Sample response: “Using loops makes our code easier and faster to write.”)
Code.Org Connections [Optional]
1.Review Code.org’s Course A loop activities: https://studio.code.org/s/coursea-draft/stage/9/puzzle/1
- Ask, “How did we use loops in these puzzles?”
- Sample response: “We used loops to repeat blocks of code that are used over and over again without having to add every block to our algorithm.”
Before the Lesson
Prior Experience
Before this lesson, we recommend that students complete:
- Level A Lessons: All
- Level B: Lesson 1
- [Optional] Level A Challenge Cards: All
- [Optional] Level B Challenge Cards: B 1.1-1.3
Preparation
- Print out four copies of the Dash Dance Moves Worksheet. Then cut along the dotted lines.
- Use tape to connect the 4 Dance Runways cut out from the Dash Dance Moves Worksheet.
Wrap Up
Student Presentations
- Have student groups take turns sharing their dances with the class. Encourage them to:
- Explain their design thinking. (e.g., “We chose to add lots of turns to our dance because we like to get dizzy!”)
- Share any obstacles and difficulties they overcame during the activity. (E.g.,“We weren’t sure how to make loops on a piece of paper, but then we learned how to add Repeat blocks under the moves we wanted to loop.”)
- Encourage students to give each other feedback on their programs:
- “How did you make your dance so long?”
- “I like how you repeated the turn moves over and over again!”
- “What if you added some Turn Left blocks?”
Follow-Up Questions/Discussion
- Do you think you will use loops in your future programs? Why or why not? (Sample response: “I think I will use loops because they make programming much easier.”)
- How do you use loops in your life? (Sample response: “I use loops every time I eat. I put food on the fork, pick up the fork, put it in my mouth, take a bite, put the fork down, and then repeat.”)
- Have students volunteers act out a loop they use in real life.
Assessment
- Use our Evaluation Rubric to review students' work and presentations.
- [Optional] Share your students' work with the world using @logicsacademy and #dashanddot!
Guided Practice
Activity: Loops Dance
- Say, “We use loops when we do some dances. The Macarena and the Cupid Shuffle are both examples of dances that use loops. These dances repeat the same movements over and over.”
- Say, “Now we are going to create a dance that uses loops for Dash.”
- Show students a copy of the Dash Dance Moves Worksheet.
- Say, “In our dance, Dash is going to repeat some moves. First, let’s make a dance for Dash!”
- Layout the dance blocks that were cut out from 4 copies of the Dash Dance Moves Worksheet.
- Have students pick one of the dance blocks (e.g., “Turn Left”). Then have them decide how many times they want to repeat that move (e.g., “3 times”).
- Place the selected number of dance blocks on the Dance Runway (e.g., place 3 Turn Left blocks on the Dance Runway).
- Have students continue adding dance blocks to the Dance Runway in the same manner until there are at least 12 dance blocks in the sequence.
- Play some music and have student volunteers perform the dance that the class designed. Then ask, “What do you notice about the sequence for Dash’s dance?”
- Sample response: “The sequence for Dash’s dance is very long.”)
- Say, “Now, let’s show the same dance moves using loops.”
- Show students the Repeat blocks that were cut out from the Dash Dance Moves Worksheet.
- Model using the Repeat blocks to simplify the dance sequence that students just designed.
- For example, instead of placing 3 Turn Left blocks in a row, use one Turn Left block and place a “x3” Repeatblock underneath it.
- Have students provide suggestions as you continue simplifying the dance sequence.
- Have student volunteers share what they notice about the new version of the dance sequence.
- Sample response: “The first version was very long, while the second version is shorter.”
- Make sure to emphasize that both sequences create the same dance for Dash. They are just shown in a different way.
- Say, “This is why we use loops in coding. It makes our code much shorter and faster to write.”
- Have the entire class stand up. Play some music and have them perform Dash’s dance.
