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))





Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250