Last active
September 20, 2020 01:44
-
-
Save Tremeschin/b4883dfe4d6f447df73950e3479318f5 to your computer and use it in GitHub Desktop.
One line, 79 chars FizzBuzz in Python
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([[i,"Fizz","Buzz","FizzBuzz"][(i%3==0)+2*(i%5==0)]for i in range(1,100)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment