Created
May 27, 2017 20:58
-
-
Save DavidMetcalfe/3d70cf007381e8374c8b827ac9e57940 to your computer and use it in GitHub Desktop.
FizzBuzz One-liner for Python3
This file contains hidden or 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('\n'.join("Fizz" * ( i % 3 == 0) + "Buzz" * ( i % 5 == 0) or str(i) for i in range(1, 101))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment