-
-
Save parzibyte/caed1a8f0b632106bcbba37adb4c54d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inicio = 2000 | |
fin = 3000 | |
print(f"Imprimiendo años bisiestos del {inicio} al {fin}") | |
# Le sumamos uno al fin, porque range no incluye el límite superior | |
for anio in range(inicio, fin+1): | |
if es_bisiesto(anio): | |
print(anio, end=", ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment