Skip to content
Snippets Groups Projects
Commit 4673a93b authored by Barrenetxea Berasategi, Xabier's avatar Barrenetxea Berasategi, Xabier
Browse files

Xabi 1

parent a13dfb2c
No related branches found
No related tags found
No related merge requests found
Pipeline #30210 failed
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment