Question: Python-- Write a function called leap year that accepts a numerical argument and determines whether that year is a leap year or not. If the

Python-- Write a function called leap year that accepts a numerical argument and determines whether that year is a leap year or not. If the argument is a leap year, the function should return True, otherwise False. (Hint: A leap year in the Gregorian calendar occurs on every year that is evenly divisible by 4, except every year that is evenly divisible by 100, unless the year is also evenly divisible by 400.) For example, calling leap year(1900) should return False and leap year(2000) should return True

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 Databases Questions!