Skip to content

Instantly share code, notes, and snippets.

@elvinio
Last active August 29, 2015 14:14
Show Gist options
  • Save elvinio/938588de30217dfc5d85 to your computer and use it in GitHub Desktop.
Save elvinio/938588de30217dfc5d85 to your computer and use it in GitHub Desktop.
FizzBuzz in Python
#!/usr/bin/env python
for x in range(0, 100):
if x%3==0 and x%5==0:
print 'FizzBuzz'
elif x%3==0:
print 'Fizz'
elif x%5==0:
print 'Buzz'
else:
print x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment