About Lesson
Isleap():-
The isleap() takes a 4 digit year as an argument, and return True if it is a leap year. Otherwise False.
import calendar print(calendar.isleap(2000)) #this is leap year print(calendar.isleap(2022)) # this is not leap year |