warning

These resources will be removed by end of Summer Term 2025.

Switch to our new teaching resources now - designed by teachers and leading subject experts, and tested in classrooms.

Lesson details

Key learning points

  1. In this lesson, we will investigate the world of iteration in programming. We will learn how to create and use a while loop in Python.

Licence

This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.

Loading...

3 Questions

Q1.
What will be the output of this program if the user enter's Hedy when prompted?
An image in a quiz
Correct answer: Hello Hedy
There is an error in the program
Try again Hedy
Try again Hedy, Hello, Hedy
Q2.
What will be the output of this program if the user enter's Rebecca when prompted?
An image in a quiz
Hello Hedy
There is an error in the program
Correct answer: Try again Hedy
Try again Hedy, Hello, Hedy
Q3.
True or False: A while loop isn’t constantly evaluating the condition. It executes the entire sequence within the loop before re-evaluating the condition.
False
Correct answer: True

Lesson appears in

UnitComputing / Programming 3: Iteration

Computing