Skip to content

Instantly share code, notes, and snippets.

@kennx
Created October 21, 2011 10:28
Show Gist options
  • Save kennx/1303526 to your computer and use it in GitHub Desktop.
Save kennx/1303526 to your computer and use it in GitHub Desktop.
>>> counter = 0
>>> while counter < 3:
... print 'loop #%d' % (counter)
... counter += 1
loop #0
loop #1
loop #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment