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 1 of 4
Repeat N times.
A for loop repeats a block a fixed number of times. Use range() to generate the sequence of values for the loop variable.
for i in range(n): repeats n times, i = 0,1,...,n-1range(1, 6) gives 1 to 5; range(0, 10, 2) steps by 2for when you know how many repetitionsfor i in range(5):
print(i) # 0 1 2 3 4
for i in range(1, 4):
print(i * 2) # 2 4 6Specification notes for programming are in Paper 2.