# Loops in Coding > Fourth graders build programming skills by exploring loops - a way to tell a computer to repeat steps - including count-controlled loops, forever loops, and nested loops, and why they save work. **Computer Science** | **Grade 4** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g4-cs-loops.html* Fourth graders explore loops, the coding trick that tells a computer to repeat steps instead of writing them over and over, and see how loops make programs shorter and smarter. **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 what a **loop** does. - Tell **loop types** apart. - See how loops **save work**. - Spot a loop in code. Drawing a square means repeating the same steps four times. How do loops let a computer repeat work without writing it out every time? ## Explore Loops Project this and open each card to explore loops and how they repeat steps in a program. ## 45 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — Say It Again To draw a square, you repeat the same two steps four times: go forward, turn. Is there a shorter way to tell a computer to repeat? #### 👩‍🏫 Teacher Moves - Mime repeating steps. - Ask for a shortcut. - Set the goal. #### 🎒 Student Actions - Think. - Share. - Get ready. ### Use — Explore Loops Students explore loops. #### 👩‍🏫 Teacher Moves - Send students to Explore Loops. - Open each card. - Name the idea. #### 🎒 Student Actions - Explore. - Read. - Say it. ### Modify — Loop It Students rewrite repeated steps as a loop. #### 👩‍🏫 Teacher Moves - Take a list of repeated steps. - Rewrite it as a loop. - Say how many times it repeats. #### 🎒 Student Actions - Take. - Rewrite. - Say. ### Create — Draw with Loops Students plan a looped program. #### 👩‍🏫 Teacher Moves - Pick a shape or pattern. - Write the repeated steps. - Wrap them in a loop. #### 🎒 Student Actions - Pick. - Write. - Wrap. ### Reflect — Repeat Smarter Students reflect on loops. #### 👩‍🏫 Teacher Moves - What does a loop do? - Why use a loop instead of repeating code? - Complete the exit ticket. #### 🎒 Student Actions - Say it. - Say it. - Complete the exit ticket. ## Built to the standards you report on Aligned to the CSTA K-12 Computer Science Standards and ISTE Standards for Students. Create programs that include sequences, events, loops, and conditionals. Compare and refine multiple algorithms for the same task. Decompose problems into smaller, repeatable parts. Break problems into parts and use loops to automate repetition. ## One lesson, every learner ### Multilingual Learners - Loop-idea picture cards. - Sentence frame: “Repeat ___ times: ___ .” - Explore one idea at a time. ### Support & Access - Start with repeat-a-set-number loops. - Act out a loop as a class. - Name one loop type at a time. ### Stretch & Extend - Trace a nested loop's output. - Rewrite a long program using loops. - Add a condition that ends a loop. ### What to gather - 📽️Projector / board - 🖼️Loop-idea cards - 💻Explore Loops - 🧩Unplugged step cards - ✏️Pencils - 🎫Exit-ticket slips ### Key terms - **loop**: an instruction that repeats one or more steps - **repeat**: to do the same step or steps again - **count-controlled loop**: a loop that repeats a set number of times - **forever loop**: a loop that repeats until something stops it - **nested loop**: a loop placed inside another loop - **code**: the instructions that tell a computer what to do - **sequence**: steps carried out in order - **program**: a set of instructions a computer follows ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Create: draw with loops. Have students pick a shape or pattern, write the steps that repeat, and wrap them in a loop, so repetition becomes a tool they can use. A printable loops worksheet is in the Computer Science library. ## Check your understanding **1. What does “loop” mean?** - an instruction that repeats one or more steps *(correct)* - to do the same step or steps again - a loop that repeats a set number of times - a loop that repeats until something stops it “loop” means: an instruction that repeats one or more steps **2. Which word means: “to do the same step or steps again”?** - loop - repeat *(correct)* - count-controlled loop - forever loop “repeat” means: to do the same step or steps again **3. What does “count-controlled loop” mean?** - an instruction that repeats one or more steps - to do the same step or steps again - a loop that repeats a set number of times *(correct)* - a loop that repeats until something stops it “count-controlled loop” means: a loop that repeats a set number of times **4. Which word means: “a loop that repeats until something stops it”?** - loop - repeat - count-controlled loop - forever loop *(correct)* “forever loop” means: a loop that repeats until something stops it **5. What does “nested loop” mean?** - a loop placed inside another loop *(correct)* - an instruction that repeats one or more steps - to do the same step or steps again - a loop that repeats a set number of times “nested loop” means: a loop placed inside another loop **6. Which word means: “the instructions that tell a computer what to do”?** - loop - code *(correct)* - repeat - count-controlled loop “code” means: the instructions that tell a computer what to do ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g4-cs-loops.html All lessons: https://lessonplans.k12academics.com/