PY/MATH
Home
Challenges
Concepts
Progress
Final Project
0 XP
·
L1
EN
NO
☾
⚙
← Challenges
Logic & reasoning · Medium
Leap Year
Write `is_leap(year)` (Gregorian rules: divisible by 4, but not by 100 unless also by 400).
solution.py
○ Loading…
Reset
Loading...
Run code
Check solution
Console
Test cases
is_leap(2000)
PENDING
is_leap(1900)
PENDING
is_leap(2024)
PENDING
Hidden
PENDING
Hints
Reveal next hint
>_