Your task is to write and test a function which takes one argument (a year) and returns True if the year is a leap year, or False otherwise.
The seed of the function is already shown in the skeleton code in the editor.
Note: we’ve also prepared a short testing code, which you can use to test your function.
The code uses two lists ‒ one with the test data, and the other containing the expected results. The code will tell you if any of your results are invalid.
OUTPUT:
Ngonie Handoni is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
0