From 99731bbf4e1cd834d9492760cf451372a2c7c77c Mon Sep 17 00:00:00 2001 From: mm Date: Thu, 28 Sep 2023 22:44:56 +0000 Subject: [PATCH] remove old file --- public_html/fzbz.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 public_html/fzbz.py diff --git a/public_html/fzbz.py b/public_html/fzbz.py deleted file mode 100644 index c9a7c75..0000000 --- a/public_html/fzbz.py +++ /dev/null @@ -1,19 +0,0 @@ -stop = int(1E4) -triggers = [3, 5] -printout = ['fizz', 'buzz'] - -def isNumberDivisibleBy(num:int, div:int, msg:str) -> str: - if num % div == 0: return msg - return "" - -output = "" -for index in range(1, 1+stop): - tmp = "" - for div, out in zip(triggers, printout): - tmp += isNumberDivisibleBy(index, div, out) - - if len(tmp) == 0: tmp = str(index) - - output += tmp + "\n" - -print(output)