the break statement is widely used inside a for loop or while loop to come out of the loop. when break is executed the python interpreter jumps out of the loop to process the next statement in the program.
Q.) Program to demonstrate the break statement.
i=1;
while i<=10:
print(i);
if i==5
break
i=i+1
Output
1 2 3 4