We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b3016e9 + 990de05 commit 0571b00Copy full SHA for 0571b00
Interview_questions/FizzBuzz.py
@@ -0,0 +1,9 @@
1
+for num in range(1, 101):
2
+ if num % 15 is 0:
3
+ print("FizzBuzz")
4
+ elif num % 3 is 0:
5
+ print("Fizz")
6
+ elif num % 5 is 0:
7
+ print("Buzz")
8
+ else:
9
+ print(num)
0 commit comments