Question: Write a Python program to determine whether a given year is a leap year. Hint: - A leap year occurs if the year is divisible

Write a Python program to determine whether a given year is a leap year.
Hint:- A leap year occurs if the year is divisible by 4. However, for century years (ending in 00), it must also be divisible by 400 to qualify as a leap year.
- For example, years like 400,800,1200,1600, and 2000 are leap years, but 100,200,300,1500,1700,1800, and 1900 are not. Years such as 2004,2008, and 2012 are also leap years.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!