def bisiesto(year):
"""
Funcion que valida si un año es bisiesto
:param year: año a validar
:return: True si es bisiesto, False si no lo es
"""
if year % 4 == 0 and year % 100 != 0 or year % 400 == 0:
return True
else:
return False
print(bisiesto(2020))
print(bisiesto(2019))
print(bisiesto(2000))
print(bisiesto(1900))
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)