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

leapdays():-

       the leapdays() returns the total number of leap days from year y1 to year y2.

import calendar

print(calendar.leapdays(2000,2022))

output: 

        6

error: Content is protected !!