Created
May 24, 2016 22:33
-
-
Save efexen/006c13e9ffe397cdb716652681f9b432 to your computer and use it in GitHub Desktop.
Ridiculous 1 line Python FizzBuzz for Python May
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
print str.join('\n', [str(str.join('', [out if number % divisor == 0 else '' for divisor, out in { 3: 'Fizz', 5: 'Buzz' }.items()]) or number) for number in range(1, 101)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment