Articles → PYTHON → Check If The Given Year Is Leap Year Or Not In PythonCheck If The Given Year Is Leap Year Or Not In PythonIn this article, we will check if the given year is a leap year or not.Example In the calendar module, we have a function called isleap that takes year as the input parameter and returns false if the year is not a leap year or vice versa.import calendar print ("2020 is a leap year true/false:", calendar.isleap(2020))Output Posted By - Karan Gupta Posted On - Thursday, February 28, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
import calendar print ("2020 is a leap year true/false:", calendar.isleap(2020))
Query/Feedback