Skip to content

Instantly share code, notes, and snippets.

@Tremeschin
Last active September 20, 2020 01:44
Show Gist options
  • Save Tremeschin/b4883dfe4d6f447df73950e3479318f5 to your computer and use it in GitHub Desktop.
Save Tremeschin/b4883dfe4d6f447df73950e3479318f5 to your computer and use it in GitHub Desktop.
One line, 79 chars FizzBuzz in Python
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