Commit 2136bb2f authored by Barrenetxea Berasategi, Xabier's avatar Barrenetxea Berasategi, Xabier
Browse files

Xabi 2

parent 4673a93b
Pipeline #30215 failed with stage
in 16 seconds
......@@ -6,12 +6,12 @@ def fizzbuzz(n:int) -> str:
For numbers which are multiples of both three and five print "FizzBuzz".
"""
if 3 % n == 0 and 5 % n == 0:
return "Fizz Buzz"
return "FizzBuzz"
elif 3 % n == 0:
return "Fizz"
elif 5 % n ==0:
return "Buzz"
else:
return n
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