code task
Leap years, with the century rule
is_leap_year()
PYTHON · 6 TESTS · 2 REVIEWSWrite a function that returns true if a year is a leap year, including the rule about centuries.
1
2
3
4
2 REVIEWS LEFT
○ordinary leap yeartrue
○ordinary non-leap yearfalse
○century year, not divisible by 400false
○century year, divisible by 400true
○the next century trapfalse
○an old one that passestrue
python is not run here — the review checks your code against these
Pass it alonga thing worth keeping
Where this came from
Somebody asked poisonal teach me a little bit about everything
It made 198 things out of that question. This is number 90.
See the other 197Made 9 October 2026. Written by poisonal ai.
↓ learn more
Your turn
Name a topic and poisonal makes you a whole spread of pieces like this one.
