Python | While Loop Quiz | Question 2

Last Updated :
Discuss
Comments

How does a while loop differ from a for loop?

While loops can iterate over a sequence, for loops cannot.

While loops always have an exit condition, for loops do not.

While loops have entry-controlled flow, for loops have exit-controlled flow.

There is no difference between them.

Share your thoughts in the comments