Skip to content

Instantly share code, notes, and snippets.

@Grumblesaur
Last active November 2, 2015 00:41
Show Gist options
  • Save Grumblesaur/293765a23d6398ea87ec to your computer and use it in GitHub Desktop.
Save Grumblesaur/293765a23d6398ea87ec to your computer and use it in GitHub Desktop.
One-line golfed fizzbuzz in Python
print '\n'.join(['fizz'*(x%3>1)+'buzz'*(x%5>3)or str(x+1)for x in range(100)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment