Skip to content

Instantly share code, notes, and snippets.

@jasoncartwright
Created August 4, 2025 15:32
Show Gist options
  • Save jasoncartwright/6f67b8e4e987ed86cd8546d0ece8d424 to your computer and use it in GitHub Desktop.
Save jasoncartwright/6f67b8e4e987ed86cd8546d0ece8d424 to your computer and use it in GitHub Desktop.
NUMBER_TO = 9699690
OUTPUTS = {
2:"Weil",
3:"Fizz",
5:"Buzz",
7:"Argh",
11:"Zarp",
13:"Plop",
17:"Dilp",
19:"Narp",
}
def ultra_fizz_buzz():
for number in range(1, NUMBER_TO+1):
output = ""
for divisor, text in OUTPUTS.items():
if number % divisor == 0:
output += text
if output == "":
output = number
print(output)
ultra_fizz_buzz()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment