Commit 713c8ca9 authored by Iñaki García's avatar Iñaki García
Browse files

Corrected

parent f7d781a6
Pipeline #30217 passed with stage
in 18 seconds
......@@ -5,5 +5,12 @@ 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 ""
if n % 15 == 0:
return "FizzBuzz"
elif n % 3 == 0:
return "Fizz"
elif n % 5 == 0:
return "Buzz"
else:
return str(n)
Supports Markdown
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