Created
April 3, 2021 21:32
-
-
Save sirsnowy7/ac8ee15bed4cf86ef35c06873ee1ec18 to your computer and use it in GitHub Desktop.
A really really simple Fizz Buzz implementation in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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