Skip to content

Instantly share code, notes, and snippets.

@tetra5
Last active August 8, 2017 03:16
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tetra5/4994069 to your computer and use it in GitHub Desktop.
FizzBuzz
for i in range(1, 101):
print "Fizz" * (not i % 3) + "Buzz" * (not i % 5) or i
print " ".join("Herp" * (not i % 3) + "Derp" * (not i % 5) or str(i) for i in range(1, 101))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment