Python - User-Defined Functions

Publicado el: 02 abril 2020
en el canal de: Manish Mahour
54
3

#Python #Functions

In this video, I am demonstrating how we can create our own user-defined functions using below mentioned problem.

In the Gregorian calendar three criteria must be taken into account to identify leap years:
The year can be evenly divided by 4, is a leap year, unless:
The year can be evenly divided by 100, it is NOT a leap year, unless:
The year is also evenly divisible by 400. Then it is a leap year.
This means that in the Gregorian calendar, the years 2000 and 2400 are leap years, while 1800, 1900, 2100, 2200, 2300 and 2500 are NOT leap years.
You are given the year, and you have to write a function to check if the year is leap or not.

Sample Input
1990
Sample Output
False


En esta página del sitio puede ver el video en línea Python - User-Defined Functions de Duración hora minuto segunda en buena calidad , que subió el usuario Manish Mahour 02 abril 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 54 veces y le gustó 3 a los espectadores. Disfruta viendo!