Question 3
Back to Exercise
Python refuses to run the program below. Which statement correctly describes the problem?
for i in range(3)
print(i)
- A range needs two arguments
- B i must be declared
- C print must not be indented
- D The for header must end with a colon Correct
Correct Answer: Option D
Write for i in range(3):.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!