Break statement is a jump statement which is used to transfer execution control or Break statement is a loop control statement which is used to terminate the loop.Break statement terminates the control of inner loop only.
for a in 'Hello': if a == 'o': break print(a)
output:-
H
e
l
l
loop from H to l is not printed after a==o
Continue is also a loop control statement which is used to execute the next iteration of the loop.When the continue statement is executed in the loop, the code inside the loop following the continue statement will be skipped and next iteration of the loop will begin.
for a in 'Welcome': if a== 'c': continue print (a)
output:-
W
e
l
o
m
e