first commit

This commit is contained in:
Jose Caban
2025-06-07 11:38:03 -04:00
commit e0316ca3ff
79 changed files with 3155 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import sys
try:
N = int(input("How many fizzbuzzes?: "))
except:
print("Invalid input")
sys.exit()
for x in range(1,N+1):
if x % 3 == 0 or x % 5 == 0:
if x % 3 == 0:
print("fizz", end="")
if x % 5 == 0:
print("buzz", end="")
else:
print(x, end="")
print("")