Skip to content

Instantly share code, notes, and snippets.

@xfenix
Created August 17, 2018 13:09
Show Gist options
  • Save xfenix/280d6d356d70ad5b8fd595b0abbec676 to your computer and use it in GitHub Desktop.
Save xfenix/280d6d356d70ad5b8fd595b0abbec676 to your computer and use it in GitHub Desktop.
FizzBuzz in one row (Don't do this. Ever)
for item in range(1,101): print((('Fizz' if item % 3 == 0 else '') + ('Buzz' if item % 5 == 0 else '')) or item)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment