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
15
4
6

2. What is printed?

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

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic