Question: Python 3 Part A: Leap Year A leap year in the Gregorian calendar system is a year that is divisible by 400 or a year
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 Optional challenge: write the function suite as one line.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
