Please respond in Python code, thx!
Write a function called is_valid_date(month, day, year)that takes three positive integer scalar inputs year, month, day.If these three represent a valid date, return a logical true,otherwise false. The name of the output argument is valid. If anyof the inputs is not a positive integer scalar, return false aswell. Note that every year that is exactly divisible by 4 is a leapyear, except for years that are exactly divisible by 100. However,years that are exactly divisible by 400 are also leap years. Forexample, the year 1900 was not leap year, but the year 2000was.
Please respond in Python code, thx! Write a function called is_valid_date(month, day, year) that takes three positive in
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am