Unplugged Coding Lesson – Discover Loops in Computer Science

Lesson on programming loops



Students will explore the concept of loops in programming through an engaging and interactive activity that does not require the use of computers. They will learn how loops can be used to repeat actions efficiently.

Materials Needed

  • A simple song or chant that can be repeated
  • A large poster board or whiteboard
  • Markers or crayons
  • A set of “Loop Cards” prepared in advance, each depicting a fun action (e.g., “Jump”, “Clap”, “Spin”)
  • A “Loop Counter” – a small box or container to hold objects (e.g., marbles, blocks) used for counting loops

Lesson Duration

45 minutes

Lesson Overview

This lesson plan introduces the concept of loops, a fundamental coding structure that allows actions to be repeated multiple times without having to write out the instructions for each repetition. Through physical activities and visual aids, students will understand how loops work and how they simplify tasks.

Introduction to Loops (5 minutes)

Begin with a simple explanation:

  • A loop in coding tells the computer to do something over and over again, a certain number of times or until a condition is met. Imagine if we wanted to clap our hands 10 times, instead of saying “clap” 10 times, we can use a loop to say “clap your hands 10 times.”

Warm-up Activity: Song Loop (5 minutes)

  • Teach the class a simple song or chant.
  • Sing the song once, then explain that if you wanted to sing it three times, you could use a “loop” instead of starting over each time.
  • Sing the song three times as a class, counting each loop out loud to reinforce the concept.

Loop Cards Activity (15 minutes)

  • Activity Setup:
  • Scatter the “Loop Cards” face down around the classroom.
  • Place the “Loop Counter” objects in a central location.
  • Activity Instructions:
  • Divide students into small teams.
  • Each team picks a “Loop Card” and decides how many times they want to perform the action (between 2 to 5 times).
  • They collect the corresponding number of “Loop Counter” objects to represent how many times they’ll repeat the action.
  • Teams take turns performing their actions, counting out loud each repetition to demonstrate the loop.

Drawing Our Loops (10 minutes)

  • Use the poster board or whiteboard to draw a visual representation of loops.
  • Activity Instructions:
  • Invite students to come up and draw a circle (loop) on the board.
  • Inside the circle, they draw symbols representing the actions they performed (e.g., a hand for clapping).
  • Beneath or beside the circle, they write the number of times the loop should run (their chosen repetitions).
  • Discuss how this visual representation helps us understand how many times an action is repeated in a loop.

Reflection and Discussion (5 minutes)

  • Ask students to think of other situations where loops might be useful (e.g., brushing teeth, doing exercises).
  • Discuss how loops in coding can help programmers avoid repeating the same instructions over and over.


Through songs, physical activities, and visual aids, this lesson plan introduces third-grade students to the concept of loops in coding. By understanding how loops can repeat actions multiple times efficiently, students gain insight into how computer programs are structured and simplified. Encourage students to continue exploring coding concepts through everyday activities and imagination.


IDE options


16 Apr 2024

Ready to Boost Your Teen’s Future with Coding?

Best dev enviroments for learning to code


16 Apr 2024

Top 5 Epic Coding Environments for Teens

review kids coding sites

Education, Learn to Code

16 Apr 2024

Top Learn-to-Code Online Sites and Tools for Kids

Convert USD to other currency program

Advanced Placement, Java, Tutorial

4 Apr 2024

Object-Oriented Programming in Java – AP CS A

learn to use replit IDE

Advanced Placement, Java, Tutorial

4 Apr 2024

Exploring Concurrency in Java – AP Exam

Minecraft Mods in Java


4 Apr 2024

Getting Started with Minecraft Forge

Lesson on functions in computer science programming


4 Apr 2024

Preparing to Teach Coding for the First Time

learn to code as a family


4 Apr 2024

In-Person vs. Live Virtual Coding Lessons