
v0.39: Grademe is back in your terminal.
Try the CLI betaRepair the leap-year rule so a century year counts as leap only when it is divisible by 400.
Open any spreadsheet and type the date February 29, 1900. Excel says it exists. It never did: 1900 was not a leap year, because a century is a leap year only when it divides by 400. Microsoft kept the phantom day on purpose, back in 1985, to stay compatible with Lotus 1-2-3, and it is still sitting in every copy of Excel today. Your job is the honest rule, with no day that never happened.
feb_days(1900)Expected result
28For your own tracking. Tests grade your code.
feb_days(2000)Expected result
29feb_days(2024)Expected result
29Expected files
leap.cAllowed functions
None. Write every helper yourself.
