Skip to content

Instantly share code, notes, and snippets.

@mightbesimon
Last active November 23, 2022 14:20
Show Gist options
  • Save mightbesimon/61628ec26d3b1cd3ab917827a58163ef to your computer and use it in GitHub Desktop.
Save mightbesimon/61628ec26d3b1cd3ab917827a58163ef to your computer and use it in GitHub Desktop.
fizzbuzz
print(*[num if num%3 and num%5 else 'fizz'*(not num%3) + 'buzz'*(not num%5) for num in range(1,20)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment