Python for Testers #22 – Break and Continue in Python

In this Python for Testers Tutorial we will learn how to use break and continue in python. Break as the name suggests, it breaks out from the nearest enclosing loop continue goes to the start of the nearest and closing loop. The keyword continue won’t break out of the loop.