Menu

Count-Controlled Iteration - Code Quiz

1. What is printed?

for i in range(1, 5): print(i)
0 1 2 3 4
1 2 3 4
1 2 3 4 5
1 2 3

2. What value is printed?

total = 10 for i in range(0, 3): total = total + i print(total)
3
10
16
13

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic