Skip to content

Instantly share code, notes, and snippets.

@sirsnowy7
Created April 3, 2021 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirsnowy7/ac8ee15bed4cf86ef35c06873ee1ec18 to your computer and use it in GitHub Desktop.
Save sirsnowy7/ac8ee15bed4cf86ef35c06873ee1ec18 to your computer and use it in GitHub Desktop.
A really really simple Fizz Buzz implementation in Python
# I made this to see what I would do before watching Tom Scott's Fizz Buzz video
for i in range(1, 101):
if i % 3 == 0 and i % 5 == 0:
print("fizz buzz")
elif i % 3 == 0:
print("fizz")
elif i % 5 == 0:
print("buzz")
else:
print(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment