Check Gregorian Leap Years

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.

Back to Lesson