Breaking a while loop
You saw in the video that if a condition continues to be met then a while loop will run indefinitely!
Can you remember the ways that you can stop a while loop from running forever? Select the two answers that apply.
This exercise is part of the course
Introduction to Python for Developers
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise