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
- Input: year = 2024Output: true
- Input: year = 2023Output: false
Examples use JSON: true/false/null are True/False/None in Python.