LearnPy Hub
← Operators problems
Medium

Leap Year (one expression)

Read a year and print True if it is a leap year, using one boolean expression with and/or (divisible by 4 and not by 100, or divisible by 400).

Input

One year.

Output

True or False.

Sample 1

Input
2024
Output
True

Sample 2

Input
1900
Output
False
solution.py
Output appears here
Leap Year (one expression) · Python practice problem · LearnPy Hub