Python – Break:

In this tutorial, we will learn about the Break statement in Python. Break statement is used to terminate the loop program at a point.

Let us understand the below example which do not have “break” statement will go through multiple iterations till the value of i becomes 109.


Below is the output:

Now, let us break the loop when the value of i becomes 105. Below is the code and output for clarification.


Below is the Output: