To test if the year is leap or not, you can use a built-in library, "calendar" . 0:37 | Procesando video... Cargando... Descargar