Repeating Things: Loops
This worksheet marks itself
Set it as homework or classwork and every answer is marked as pupils go, with feedback on what they got wrong. The scores go straight into your mark book, so you can see who needs help before the next lesson.
- 6 questions
- 15 marks
- about 25 minutes
- marked instantly
Question types: multiple choice, true or false, matching, short answer, fill the gap.
Try one from this worksheet
A for loop repeats once for each number range() produces. The stop number is never included. Which numbers does range(2, 7) produce?
Pick an answer: it's marked straight away, just as your pupils would see it.
About this resource
KS3 Computing — Python, Lesson 5 of 6. for loops with range(), while loops, loop counters and accumulators, choosing for vs while, and the danger of infinite loops. Students write and run real Python in the built-in interpreter to build a times-table printer, a countdown, and a limited-attempts p…
14 slides.
Lesson outline
- Do Now — Retrieval
- for Loops with range()
- Quick Check — What Does range() Give?
- We Do — A Countdown with for
- while Loops & Counters
- Hinge Check — Why Won't This Stop?
- for vs while — and the Danger of Infinite Loops
- Main Task — Times-Table Printer
- Predict the Output
- Challenge — Password Attempts (limited tries)
- for or while?
- Plenary — What We Learned
More from Python
- Lesson packMaking Decisions: SelectionSubscription
- Lesson packMeet Python: From Blocks to TextSubscription
- Lesson packNumbers and CalculationsSubscription
- Lesson packProject: Build a Python ProgramSubscription
- Lesson packVariables and InputSubscription
- Knowledge organiserPython Your First Text LanguageSubscription
- Scheme of workPython Your First Text LanguageSubscription


