All problems
EasyControl Flow
Is leap year?
A leap year is divisible by 4, except centuries unless divisible by 400. Print True for 2024, False for 2100, True for 2000.
- #if
- #math
Sample input
2024, 2100, 2000
Sample output
True False True
leap-year.py
Output
Press "Run code" to execute.
