Get startedGet started for free

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?

This exercise is part of the course

Introduction to Python for Developers

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise