Skip to content

Commit 8901346

Browse files
committed
Fixed an error in fizzbuzz.py
1 parent a0e1b48 commit 8901346

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Students/ebuer/session_02/fizzbuzz.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
def fizzbuzz(rng):
33
for r in rng:
4-
if not (r % 3 and r % 5):
4+
if not r % 3 and not r % 5:
55
print "fizzbuzz"
66
elif not r % 3:
77
print "fizz"

0 commit comments

Comments
 (0)