Skip to content

Commit deb9ada

Browse files
author
Ashish Ranjan
committed
optimised
1 parent 263fdcf commit deb9ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/fizz_buzz_zbarovsky.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
for i in range (1, 101):
2-
if i % 3 == 0 and i % 5 == 0:
2+
if i % 15 == 0:
33
print('fizzbuzz')
44
elif i % 3 == 0:
55
print('fizz')

0 commit comments

Comments
 (0)