Skip to content

Instantly share code, notes, and snippets.

@massa142
Created November 12, 2015 23:13
Show Gist options
  • Save massa142/2e267bedc5cc6db32c3d to your computer and use it in GitHub Desktop.
Save massa142/2e267bedc5cc6db32c3d to your computer and use it in GitHub Desktop.
FizzBuzz one-liner
for i in range(100):print(i%3//2*'Fizz'+i%5//4*'Buzz'or i+1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment