Skip to content

Instantly share code, notes, and snippets.

@Geekfish
Created January 18, 2013 12:51
Show Gist options
  • Save Geekfish/4564365 to your computer and use it in GitHub Desktop.
Save Geekfish/4564365 to your computer and use it in GitHub Desktop.
Continue or else?
foos = [1, 2, 4, 1, 1, 5, 2, 1]
# continue
for foo in foos:
if foo == 1:
print "ONE"
continue
print foo
# else
for foo in foos:
if foo == 1:
print "ONE"
else:
print foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment