Created
August 4, 2025 15:32
-
-
Save jasoncartwright/6f67b8e4e987ed86cd8546d0ece8d424 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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