Leap Year Program in Python
Leap Year Program in Python
Blog Article
To check for a leap year in Python, use this logic:
Divisible by 4
Not divisible by 100 unless also divisible by 400
Report this page
To check for a leap year in Python, use this logic:
Divisible by 4
Not divisible by 100 unless also divisible by 400