ID EN
Calendar

leapdays

Python 3.11

Returns the number of leap years in the range from y1 to y2 (exclusive), where y1 and y2 are years.

Syntax

PYTHON
calendar.leapdays(y1, y2)