Python | for loop quiz | Question 4

Last Updated :
Discuss
Comments

What will the following code output?

for i in range(3):
   print(i, end =' ')
 

0 1 2

1 2 3

0 1 2 3

1 2 3 4

Share your thoughts in the comments