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 leap year or not.Example In calendar module, we have a function called isleap that takes year as input parameter and returns false if year is not a leap year or vice versa.import calendar print ("2020 is a leap year true/false:", calendar.isleap(2020))Once you run the program, you will get following outputClick to EnlargePosted 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