Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 20, 2020 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/caed1a8f0b632106bcbba37adb4c54d4 to your computer and use it in GitHub Desktop.
Save parzibyte/caed1a8f0b632106bcbba37adb4c54d4 to your computer and use it in GitHub Desktop.
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