Compute the correct last day of any given month, handling leap years.
Constraints
Example
>>> month_end_date(2024, 2) '2024-02-29' >>> month_end_date(2023, 2) '2023-02-28' >>> month_end_date(2024, 12) '2024-12-31'
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints