Skip to content

Instantly share code, notes, and snippets.

@geopet
Created September 7, 2012 03:01
Show Gist options
  • Save geopet/3662721 to your computer and use it in GitHub Desktop.
Save geopet/3662721 to your computer and use it in GitHub Desktop.
Python FizzBuzz
for i in range(1, 101):
if i % 5 == 0 and i % 3 == 0:
print "fizzbuzz"
elif i % 5 == 0:
print "fizz"
elif i % 3 == 0:
print "buzz"
else:
print i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment