- In the
problem1
module, create a function namedis_leap_year
that takes one argument, an integer, that represents the year. - The function should return True if the year is a leap year and False otherwise.
- A leap year is a year that adheres to the following:
- Is divisible by 4 and not by 100
- Or if it is divisible by 100, it is also divisible by 400
- For example, 2100 is not a leap year, but 2400 is a leap year.
- Uncomment the import in
test_problem1.py
, uncomment the test bodies, and delete thepass
keyword. - Run the tests and if they pass, commit and push the code to GitHub.
- Verify that the tests pass under the Actions tab in GitHub.
- In the
problem2
module, create a function nameddate_format
that takes one argument, a string, that is in the formatMM/DD/YYYY
. - The function should the date formatted as
YYYY-MM-DD
. - Uncomment the import in
test_problem1.py
, uncomment the test bodies, and delete thepass
keyword. - Run the tests and if they pass, commit and push the code to GitHub.
- Verify that the tests pass under the Actions tab in GitHub.