Quiz on Repetition with Loops

Test your knowledge of repetition with loops.

1

What is the result when the following program is executed?

for a in [9,2,5]:
   print(a, end=' ')
A)

It gives an error on line 1.

B)

9 2 5

C)

9 7 5

D)

2 5 9

Question 1 of 70 attempted

Get hands-on with 1200+ tech skills courses.