Skip to main content

Python Break

 Break: It breaks the flow of control.

Program:

a=10

b=20

for i in range(a,b):

    if(i==15):

        break

    print(i)

Output:                                 

10

11

12

13

14

Comments