DEV Community

I Want To Learn Programming
I Want To Learn Programming

Posted on

Code Challenge of the Day — Leap year (easy)

Return True if y is a leap year (divisible by 4, except centuries not divisible by 400).
Write is_leap_year(y).

Starter:

def is_leap_year(y):
    # TODO
    pass
Enter fullscreen mode Exit fullscreen mode

Solve it interactively in your browser (no setup), check your answer instantly, and keep your daily streak going on IWTLP: https://iwtlp.com/challenge

Top comments (0)