Menu

Count Controlled Iteration (For Loops) - Code Quiz

1. What is printed?

total = 0 for i in range(1, 5): total = total + i print(total)
10
4
6
15

2. What is printed?

numbers = [3, 6, 9] total = 0 for item in numbers: total = total + item print(total)
3
6
9
18

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic