Important Notice:

Course Content
The Calendar Module
Library Function/Predefined Functions
0/4
Sys Module
Library Function/Predefined Functions
0/2
OS Module
Library Function/Predefined Functions
0/2
Functions in Python (Chapter-10) M3-R5
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

 

error: Content is protected !!