asked 21.4k views
0 votes
What is the final line of output for this program?

for i in range(10):

print(i)

A.
0

B.
11

C.
9

D.
10

1 Answer

2 votes

Answer:

The correct answer is C. 9

Step-by-step explanation:

The program will print the numbers from 0 to 9 (inclusive) because of the for loop that iterates over the range 10. The final value printed will be 9 because the loop stops after the 9th iteration.

answered
User Pablobaldez
by
8.4k points

No related questions found