#138BeginnerConditionals· Boolean Logic
Leap Year Check
Input format
`year`: a positive integer.
Output format
`true` or `false`.
Examples
Input: year = 2024
Output: true
Divisible by 4 and not by 100.
Input: year = 1900
Output: false
Divisible by 100 but not by 400, so not a leap year.
Constraints
- 1 <= year <= 10^6
Study first
- #python
- #conditionals
- #boolean-logic
- #modulo
