Log in
← All problems

Leap year

easyBasics10 XP

A year is a leap year if it divides by 4, except years that divide by 100 — unless they also divide by 400. Return whether year is a leap year.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 4 hidden tests.