#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
Auf dieser Seite können Sie das Online-Video Python - User-Defined Functions mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Manish Mahour 02 April 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 54 Mal angesehen und es wurde von 3 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!