actualizado codigo

parent ae209247
Pipeline #30234 passed with stage
in 18 seconds
......@@ -5,5 +5,15 @@ def fizzbuzz(n:int) -> str:
And for the multiples of five print "Buzz".
For numbers which are multiples of both three and five print "FizzBuzz".
"""
return ""
return_value = ""
if n%3 == 0:
return_value += "Fizz"
if n%5 == 0:
return_value += "Buzz"
if len(return_value) == 0:
return_value = str(n)
return return_value
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment