Python | While Loop Quiz | Question 11

Last Updated :
Discuss
Comments

What does the following Python code do?

count = 0
while count < 5:
   print("Count:", count)
   count += 1
   if count == 3:
       continue
   print("After Continue")
 

Prints "Count: 0" to "Count: 4" with "After Continue" after each line.

Prints "Count: 0" to "Count: 2" with "After Continue" after each line.

Prints "Count: 0" to "Count: 4" without "After Continue" after "Count: 3".

Raises a SyntaxError.

Share your thoughts in the comments