Demonstrates the break and continue statements : Continue : Language Basics PYTHON examples


PYTHON examples » Language Basics » Continue »

 

Demonstrates the break and continue statements


 

count = 0
while True:
    count += 1

    if count > 10:
       break
    if count == 5:
        continue
    print count
    

   
  



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Language Basics
» Continue