code task
Leap years, with the century rule
Code task · python
Write a function that returns true if a year is a leap year, including the rule about centuries.
2 replies 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.
