Menu

Count-Controlled Iteration - Code Quiz

1. What is printed?

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

2. What value is printed?

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

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic