Compare commits

...

3 Commits

Author SHA1 Message Date
mm
5026f9cd45 Merge branch 'main' into deploy 2023-09-28 22:45:12 +00:00
mm
99731bbf4e remove old file 2023-09-28 22:44:56 +00:00
0075ab0646 Update Makefile 2023-09-28 16:32:43 -06:00
2 changed files with 2 additions and 21 deletions

View File

@ -8,8 +8,8 @@ build:
start: build
docker run -dit --rm \
--name webserver \
-p 8080:80 \
--name webserver \
-p 8080:80 \
-v $(shell pwd)/public_html:/usr/local/apache2/htdocs \
apache2

View File

@ -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)