programplug Logo




Python Break,Continue Statement


Break Statement

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 Statement

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






Our Services

Developing Cheapest Websites
Offer Digital Marketing
Provide College Projects
Attractive Website Developing
Summer Training,Industrial Training
SCO,SMO

Contact Us

Dehradun Uttarakhand India
www.programplug.com
info@programplug.com
0000000000

Other Link

About Us

Contact Us

Disclaimer

Privacy Policy