Using the break statement in a for structure. : Break : Language Basics PYTHON examples


PYTHON examples » Language Basics » Break »

 

Using the break statement in a for structure.


Using the break statement in a for structure.



for x in range111 ):

   if x == 5:
      break

   print x,

print "nBroke out of loop at x =", x


           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo Language Basics
» Break