Created
February 20, 2012 08:27
-
-
Save baopham/1868420 to your computer and use it in GitHub Desktop.
FizzBuzz oneliner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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