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


Picture showing the output of isleap function in python



Posted By  -  Karan Gupta
 
Posted On  -  Thursday, February 28, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250