Commit 4673a93b authored by Barrenetxea Berasategi, Xabier's avatar Barrenetxea Berasategi, Xabier
Browse files

Xabi 1

parent a13dfb2c
Pipeline #30210 failed with stage
in 17 seconds
image: "python:3.7"
before_script:
- pip install -r requirements.txt
test:
script:
- pytest
tags:
- docker
......@@ -5,5 +5,13 @@ 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 3 % n == 0 and 5 % n == 0:
return "Fizz Buzz"
elif 3 % n == 0:
return "Fizz"
elif 5 % n ==0:
return "Buzz"
else:
return 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