- In the
problem1module, create a function namedis_leap_yearthat 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 thepasskeyword. - 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
problem2module, create a function nameddate_formatthat 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 thepasskeyword. - 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.