Signed up recently but had issues with the confirmation email?
Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.
Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.
301.10 Iteration
Practise exam questionsIteration — Note 4 of 4
Fix infinite + off-by-one loops.
An infinite loop runs forever because the condition never becomes False. An off-by-one error means the loop runs one too many or one too few times. Both are common bugs.
# Bug: prints 1 to 4 (misses 5)
for i in range(1, 5):
print(i)
# Fix: prints 1 to 5
for i in range(1, 6):
print(i)Specification notes for programming are in Paper 2.