Articles → PYTHON → Check If The Given Year Is Leap Year Or Not In Python
Check If The Given Year Is Leap Year Or Not In Python
Example
import calendar
print ("2020 is a leap year true/false:", calendar.isleap(2020))
Output
Posted By - | Karan Gupta |
|
Posted On - | Thursday, February 28, 2019 |