Example & Tutorial understanding programming in easy ways.

At the time of running loop, we want to stop the loop at some condition then How we can do that in python ?

For doing this, we can use the break statement like :


for i in range(3):

     if i==1:

         break

Read More →