Skip to content
Snippets Groups Projects

Master

1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
+ 3
3
@@ -7,11 +7,11 @@ def fizzbuzz(n:int) -> str:
@@ -7,11 +7,11 @@ def fizzbuzz(n:int) -> str:
"""
"""
for i in range(1,101):
for i in range(1,101):
if i%3==0 and not i%5==0:
if i%3==0 and not i%5==0:
print "Fizz"
print ("Fizz")
if i%5 and not i%3==0:
if i%5 and not i%3==0:
print "Buzz"
print ("Buzz")
if i%3==0 and i%5==0:
if i%3==0 and i%5==0:
print "FizzBuzz"
print ("FizzBuzz")
return ""
return ""
Loading