Created
April 16, 2022 13:11
-
-
Save meicookies/d55b35314af49e2795dbc1298367aaa7 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
""" | |
It's Python!...but without any control flow statements except for try-except, and no ways to loop except recursion! | |
Why does this exist??? | |
""" | |
def FizzBuzz(start, end): | |
try: | |
0 / end | |
result = "" | |
try: | |
0 / (start % 3) | |
except: | |
result += "Fizz" | |
try: | |
0 / (start % 5) | |
except: | |
result += "Buzz" | |
try: | |
0 / len(result) | |
except: | |
result = start | |
print(result) | |
FizzBuzz(start + 1, end - 1) | |
except ZeroDivisionError: | |
pass | |
FizzBuzz(1, 20) | |
# coded by ./meicookies |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment