Register - Login - Forgotten Password

Lesson 13: Repeating Code With While Loops

How can Python repeat a pattern without making its programme longer and harder to change? Repeating instructions individually can create inconsistencies when similar lines are edited separately. A loop is the control-flow structure for repetition, while an iteration is one complete pass through the repeated block. This distinction leads to the central idea of condition-controlled repetition: continuing while a condition remains true.

Lesson 13: Repeating Code With While Loops

This lesson just one in the category Python Programming Level 1. To access this lesson you need to have a valid learner account, ask your parent to register you now.