Question: 4 . ( 2 5 points ) A leap year is a year that is an integer multiple of 4 , except for years evenly

4.(25 points) A leap year is a year that is an integer multiple of 4, except for years evenly divisible by 100, but not by 400. For example, the year 2020 was a leap year, since \(2020=4\times 505\). However, the year 2100 will not be a leap year, since it is evenly divisible by 100, but not by 400. Write a function in Python that determines whether a given year is a leap year or not. Hint: Use the "\%" operator in Python. A number x is divisible by another number y if \(\mathrm{x}\%\mathrm{y}=0\). If x is not divisible by y , then \(\mathrm{x}\%\mathrm{y}
eq 0\).

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!