Skip to content
Snippets Groups Projects

Master

Open Boto Sanchez, Fernando requested to merge fernando.boto/fizzbuzz:master into master
+ 8
8
@@ -5,13 +5,13 @@ def fizzbuzz(n:int) -> str:
@@ -5,13 +5,13 @@ def fizzbuzz(n:int) -> str:
And for the multiples of five print "Buzz".
And for the multiples of five print "Buzz".
For numbers which are multiples of both three and five print "FizzBuzz".
For numbers which are multiples of both three and five print "FizzBuzz".
"""
"""
for i in range(1,101):
if i%3==0 and not i%5==0:
if n%3==0:
print ("Fizz")
return "Fizz"
if i%5 and not i%3==0:
if n%5==0:
print ("Buzz")
return "Buzz"
if i%3==0 and i%5==0:
if n%3==0 and i%5==0:
print ("FizzBuzz")
return "FizzBuzz"
return ""
return str(n)
Loading