# Loops: How to Repeat Without Repeating Yourself > Students discover the loop — a way to tell a computer “do this again and again” without writing the same command over and over — making programs shorter and… **Computer Science** | **Grades 3–5** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-loops.html* Students discover the loop — a way to tell a computer “do this again and again” without writing the same command over and over — making programs shorter and easier to change. **Copy link** works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment. ## Everything you need before the bell rings ### Learning Objectives Students will be able to… - Explain that a **loop** repeats commands. - Rewrite repeated commands using a loop. - Predict how many times a loop **runs**. - Explain why loops make code shorter and clearer. To move 8 steps you could write “move” eight times… or you could use one loop. Why do coders love loops so much? ## Run a Loop Project this and change how many times the loop repeats. Have students compare the short loop version to the long “write it every time” version, then run it. ## 45 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Warm-Up — Write It Eight Times Write “move” eight times — tiring, right? #### 👩‍🏫 Teacher Moves - Ask students to write “move” 8 times. - Note how repetitive it is. - Set the goal: loops. #### 🎒 Student Actions - Write the repeated command. - Feel the repetition. - Predict a shortcut. ### Learn — Meet the Loop Teacher introduces loops. #### 👩‍🏫 Teacher Moves - Show “repeat 8 times: move.” - Compare loop vs. the long way. - Explain the repeat number. #### 🎒 Student Actions - Learn the loop. - Compare short vs. long. - Read the repeat number. ### Use It — Run a Loop Students use the tool. #### 👩‍🏫 Teacher Moves - Have students change the repeat count. - Compare loop code to the long way. - Run and count the steps. #### 🎒 Student Actions - Change the repeats. - Compare the two versions. - Run and count. ### Create — Loop It Students create with loops. #### 👩‍🏫 Teacher Moves - Give repeated tasks to rewrite as loops. - Ask how many times each loop runs. - Combine a loop with other commands. #### 🎒 Student Actions - Rewrite commands as a loop. - Say how many times it runs. - Mix a loop with commands. ### Share — Share Students share a loop. #### 👩‍🏫 Teacher Moves - Invite a loop example. - Have the class predict its output. - Hand out the exit ticket. #### 🎒 Student Actions - Show a loop. - Predict the output. - Complete the exit ticket. ## Built to the standards you report on Aligned to the ISTE Standards for Students and the CSTA K-12 Computer Science Standards. Create programs that include sequences, events, loops, and conditionals. Develop programs with sequences and simple loops. Use algorithmic thinking and automation to solve problems efficiently. Describe steps in a procedure using sequence language. ## One lesson, every learner ### Multilingual Learners - Show a loop with a repeat-arrow visual. - Sentence frame: “Repeat ___ times: ___.” - Clap a repeated pattern to feel a loop. ### Support & Access - Start with a repeat of 2 or 3. - Provide the loop frame to fill in. - Use physical repetition before code. ### Stretch & Extend - Nest a small pattern inside a loop. - Rewrite a long program using loops. - Predict the output of a loop with two commands. ### What to gather - 📽️Projector / board - 📓Notebooks - 💻Run a Loop - 🔁Repeat-pattern cards - ✏️Pencils - 🎫Exit-ticket slips ### Key terms - **loop**: a way to repeat commands - **repeat**: to do again - **command**: a single instruction - **program**: a sequence of commands - **pattern**: something that repeats - **efficient**: doing more with less - **count**: the number of repeats - **code**: instructions a computer runs ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Going deeper? Loop a dance. Have students write a short movement “program” using a loop (repeat 4 times: clap, stomp) and perform it — then change the repeat number and see the difference. A printable loop-dance sheet is in the CS library. ## Check your understanding **1. What does “loop” mean?** - to do again - a way to repeat commands *(correct)* - a single instruction - instructions a computer runs “loop” means: a way to repeat commands **2. Which word means: “to do again”?** - count - repeat *(correct)* - code - loop “repeat” means: to do again **3. What does “command” mean?** - doing more with less - a sequence of commands - something that repeats - a single instruction *(correct)* “command” means: a single instruction **4. Which word means: “a sequence of commands”?** - program *(correct)* - command - loop - efficient “program” means: a sequence of commands **5. What does “pattern” mean?** - a single instruction - something that repeats *(correct)* - instructions a computer runs - to do again “pattern” means: something that repeats **6. Which word means: “doing more with less”?** - repeat - count - efficient *(correct)* - command “efficient” means: doing more with less ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-loops.html All lessons: https://lessonplans.k12academics.com/