Return whether an integer year is a Gregorian leap year. Positive years divisible by 4 qualify, except century years must also be divisible by 400. Return False for year 0 or negative years.
Difficulty: beginner
Examples
[2024] → true
Your solution
Python
Results
Python starts when you run or submit this challenge.
Optional website statistics, Google Analytics/Clarity and advertising (Meta/Google) help measure and support this free site. Your choice does not limit learning. Privacy policy.
These services may use cookies and receive browsing and device information. Change your choice later from the Privacy Policy page.