Leap Year Checker

Complete is_leap_year(year): a year is a leap year if it's divisible by 4, except years divisible by 100 are not leap years, unless they're also divisible by 400. Use relational operators (%, ==) and Boolean operators (and, or) to express this correctly.

main.py
Loading editor…

Console

Run your code to see output here.