Python | While Loop Quiz | Question 6

Last Updated :
Discuss
Comments

How can you write a loop in Python that executes its body at least once?



Use a for loop.

Use a while loop with the condition always True and a break to exit inside the loop.


Set the loop condition to False.

Use a continue statement.

Share your thoughts in the comments