Python Foundation | Loops Question 14

Last Updated :
Discuss
Comments

What is the output of the following code?

Python
i = 1
while True:
   if i%7 == 0:
   	 break    
   print(i, end=" ")
   i += 1

1 2 3 4 5 6 

1 2 3 4 5 6 7

No output

Error

Share your thoughts in the comments