Skip to content

Commit 2863f97

Browse files
committed
Added fizz buzz test using Python. utkarsh-shekhar#24
1 parent 541637c commit 2863f97

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

python/fizz-buzz.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
for i in range(1, 101):
2+
if i % 3 == 0 and i % 5 == 0:
3+
print("FizzBuzz")
4+
elif i % 3 == 0:
5+
print("Fizz")
6+
elif i % 5 == 0:
7+
print("Buzz")
8+
else:
9+
print(i)

0 commit comments

Comments
 (0)