Objective
Write a function that returns how many days the month month of the year year has, and -1 when month is not a month number.
Steps
$ days_in_month(2024, 1)
31
$ days_in_month(2024, 2)
29
$ days_in_month(1900, 2)
28
$ days_in_month(2000, 2)
29
$ days_in_month(2024, 9)
30
$ days_in_month(1999, 13)
-1
Expected files
Allowed functions
None. Write every helper yourself.

Objective
Write a function that returns how many days the month month of the year year has, and -1 when month is not a month number.
Steps
$ days_in_month(2024, 1)
31
$ days_in_month(2024, 2)
29
$ days_in_month(1900, 2)
28
$ days_in_month(2000, 2)
29
$ days_in_month(2024, 9)
30
$ days_in_month(1999, 13)
-1
Expected files
Allowed functions
None. Write every helper yourself.

Tests
Run the tests to grade your code