Created
November 1, 2021 15:26
-
-
Save bigntallmike/e65253339ff08890a87ae77d98fba53a to your computer and use it in GitHub Desktop.
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
#!/usr/bin/python3 -ttu | |
# | |
# Off the top of my head, per https://www.youtube.com/watch?v=QPZ0pIK_wsc | |
for number in range(1,101): | |
#print("Debug: {}".format(number)) | |
if number % 5 == 0 and number % 3 == 0: | |
print("fizz buzz") | |
continue | |
if number % 5 == 0: | |
print("buzz") | |
continue | |
if number % 3 == 0: | |
print("fizz") | |
continue | |
print(number) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment