This week’s topics
Repeating code: for loops
- Counting loops
- Looping with range
What you will be able to do
- 2.2 Implement sequence, selection, and iteration structures.
Activity
Write a program that prints a times table.
Study materials
Further resources
- Introduction to Python Programming, 5.2: For loop · PDF · OpenStax Introduction to Python Programming (2024), 5.2: for loops and range(), pp. 118–121 · for registered students
- Python Notes for Professionals, ch. 16: Loops · PDF · GoalKicker Python Notes for Professionals, ch. 16: for loops with range() and loop examples, pp. 91–101 · for registered students
- Teaching loops concept through visualization construction · Open-access article · Çetin (2020), Informatics in Education. Students build visualisations to understand how loops run. · for registered students
Materials marked “for registered students” open in the student portal, which is set up as soon as you receive final acceptance.