Skip to content

Instantly share code, notes, and snippets.

@baopham
Created February 20, 2012 08:27
Show Gist options
  • Save baopham/1868420 to your computer and use it in GitHub Desktop.
Save baopham/1868420 to your computer and use it in GitHub Desktop.
FizzBuzz oneliner
#Rosetta Code
for x in range(1, 101):
print ''.join(['' if x%3 else 'fizz', '' if x%5 else 'buzz']) or x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment