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
Get step-by-step solutions from verified subject matter experts
