Lesson 8 – Python loops and iteration

Uncover the Magic of Python Loops: Dive into the world of code repetition with ‘for’ and ‘while’ loops. Elevate your coding skills now.

Lesson resources include;

  • Lesson plan
  • Lesson powerpoint
  • Coding video demonstrations
  • Lesson task worksheets
  • Lesson task worksheet answers
  • Homework task
  • Homework task answer sheet

Intended age range 14 +


In this lesson ‘Python Loops and iteration,’ your students will learn the secret behind making code do things over and over again. They will experiment with the w of techniques of coding loops, a special trick that makes your code more powerful.

Throughout this lesson your students will:

  • Learn what it means to repeat code and why it’s super useful in programming.
  • Understand the difference between two types of loops: “for” loops and “while” loops, each having its own special job.
  • Try your hand at using loops in your own code to make it work better and smarter.

By the end of this lesson, your classes will be confident coding loops, making your code repeat. Whether it’s doing things again and again, organizing data, or making your code work even better, loops will be your secret weapon for coding success.

Editable resources in this lesson include a teacher’s lesson plan, teaching slides, extensive video tutorials explaining the concepts, lesson task worksheet with answers and homework worksheets with answers.