Skip to content

Instantly share code, notes, and snippets.

@stevenwilkin
Created February 23, 2010 17:40
Show Gist options
  • Save stevenwilkin/312456 to your computer and use it in GitHub Desktop.
Save stevenwilkin/312456 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
for x in range(1, 101):
if not(x % 3 or x % 5):
print 'FizzBuzz'
elif not x % 3:
print 'Fizz'
elif not x % 5:
print 'Buzz'
else:
print x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment