A partir del 1 de octubre vamos a activar 2FA a todas las cuentas de esta instancia de Gitlab. No obstante, se recomienda activarlo cuanto antes para garantizar la seguridad de vuestra cuenta. Podeis hacerlo siguiendo las indicaciones del enlace.

As of October 1, we are going to enable 2FA to all accounts in this Gitlab instance. However, it is recommended to enable it as soon as possible to guarantee the security of your account. You can do it by following the instructions in the link.

https://docs.gitlab.com/ee/user/profile/account/two_factor_authentication.html#one-time-password

Commit 6740c36b authored by Inigo Reiriz's avatar Inigo Reiriz
Browse files

added fizzbuzz implementation

parent a13dfb2c
Pipeline #30209 passed with stage
in 35 seconds
image: "python:3.7"
before_script:
- pip install -r requirements.txt
test:
script:
- pytest
tags:
- docker
def fizzbuzz(n:int) -> str:
def fizzbuzz(n: int) -> str:
"""
Write a program that prints the numbers from 1 to 100.
But for multiples of three print "Fizz" instead of the number
And for the multiples of five print "Buzz".
For numbers which are multiples of both three and five print "FizzBuzz".
"""
return ""
if n % 3 == 0 and n % 5 == 0:
return "FizzBuzz"
elif n % 3 == 0:
return "Fizz"
elif n % 5 == 0:
return "Buzz"
else:
return str(n)
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