We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 197e53d commit 91cdbeeCopy full SHA for 91cdbee
huntober2023/fizzbuzz.py
@@ -7,14 +7,15 @@
7
# 5 = "Buzz"
8
9
def fizz_buzz_printer(num):
10
- for n in range(num):
+ for n in range(1,num):
11
if n % 5 == 0 and n % 3 == 0 and n != 0:
12
print("Fizz Buzz")
13
elif n % 3 == 0:
14
print("Fizz")
15
elif n % 5 == 0:
16
print("Buzz")
17
- # print(n)
+ else:
18
+ print(n)
19
20
21
print(fizz_buzz_printer(16))
pythonExercises/8kyus/evenOdd.py
0 commit comments