filmov
tv
Python Program to check whether the given year is Leap Year or Not using a method by Mahesh Huddar
![preview_player](https://i.ytimg.com/vi/OZzqk5DIg9g/sddefault.jpg)
Показать описание
Python Program to check whether the given year is Leap Year or Not Leap Year using a method by Mahesh Huddar
Write a Python program that has a method called is_leap_year() which accepts the year as its argument and checks whether the year is a leap year or not and displays an appropriate message on the screen.
if the year is divisible by 400 then the year is a leap year
Example: 1600, 2000, 2400, and so on
if the year is divisible by 4 but not by 100 is a leap year
Example:
Leap Year: 2004, 2008, 2012, 2016, 2020, and so on
Not Leap Year: 1800, 1900, 2100, and so on
********************************
The following concepts are discussed:
______________________________
python program to check leap year,
python program to check leap year or not,
python program to check leap year using the function,
how to check leap year in python,
how to check leap year or not,
how to check leap year or not in python,
how to check whether a year is a leap year or not,
how to find whether a year is a leap year or not
********************************
4. Like, Share, Subscribe, and Don't forget to press the bell ICON for regular updates
Write a Python program that has a method called is_leap_year() which accepts the year as its argument and checks whether the year is a leap year or not and displays an appropriate message on the screen.
if the year is divisible by 400 then the year is a leap year
Example: 1600, 2000, 2400, and so on
if the year is divisible by 4 but not by 100 is a leap year
Example:
Leap Year: 2004, 2008, 2012, 2016, 2020, and so on
Not Leap Year: 1800, 1900, 2100, and so on
********************************
The following concepts are discussed:
______________________________
python program to check leap year,
python program to check leap year or not,
python program to check leap year using the function,
how to check leap year in python,
how to check leap year or not,
how to check leap year or not in python,
how to check whether a year is a leap year or not,
how to find whether a year is a leap year or not
********************************
4. Like, Share, Subscribe, and Don't forget to press the bell ICON for regular updates