Skip to content

Instantly share code, notes, and snippets.

@britishben
Created November 1, 2018 17:32
Show Gist options
  • Save britishben/e96b7444031c06f2967a5e1af7aeb3b9 to your computer and use it in GitHub Desktop.
Save britishben/e96b7444031c06f2967a5e1af7aeb3b9 to your computer and use it in GitHub Desktop.
Short Fizzbuzz
#!/usr/bin/python3
for n in range(1,21):print("%s%s"%(("","Fizz")[not n%3],("","Buzz")[not n%5]) or n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment