Created
May 12, 2018 16:00
-
-
Save okplanbo/decf7485edc65f31aa38e482b909bda0 to your computer and use it in GitHub Desktop.
Yet another solution to FizzBuzz in one line (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
| for m in range(1,100): print("FizzBuzz" if (m%15==0) else"Fizz" if (m%3==0) else "Buzz" if (m%5==0) else m) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment