1#in Python, break statements can be used to break out of a loop
2for x in range(5):
3 print(x * 2)
4 if x > 3:
5 break
1# Use of break statement inside the loop
2
3for val in "string":
4 if val == "i":
5 break
6 print(val)
7
8print("The end")
9---------------------------------------------------------------------------
10s
11t
12r
13The end