Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: Using ‘for’ loops

Python: Using 'for'  loops
{filelink=16553}

for x in range( 1, 10):
   if (x%2==0): #Skip even numbers
      continue
   print x,     #print odd numbers
   if x==8:
       break;

No comments yet.

Leave a Comment