LearnPy Hub
← Functions problems
Easy

Leap Year Function

Write is_leap(year) returning True or False. Read years on one line and print the result for each on its own line.

Input

One line of years.

Output

Lines.

Sample 1

Input
2024 2023
Output
True
False

Sample 2

Input
1900
Output
False
solution.py
Output appears here
Leap Year Function · Python practice problem · LearnPy Hub