Skip to content

Instantly share code, notes, and snippets.

@bigntallmike
Created November 1, 2021 15:26
Show Gist options
  • Save bigntallmike/e65253339ff08890a87ae77d98fba53a to your computer and use it in GitHub Desktop.
Save bigntallmike/e65253339ff08890a87ae77d98fba53a to your computer and use it in GitHub Desktop.
#!/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