Question: Use Python Part A: Leap Year A leap year in the Gregorian calendar system is a year that is divisible by 400 or a year
Use Python
Part A: Leap Year A leap year in the Gregorian calendar system is a year that is divisible by 400 or a year that is divisible by 4 but not by 100. Write a function named leap_year that takes one string parameter. It returns True if the string represents a leap year, and returns False otherwise. For example, 1896, 1904, and 2000 are leap years, but 1900 is not. Therefore, leap_year(1896) returns True.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
