ID EN
Calendar

monthrange

Python 3.11

Returns weekday of first day of the month and number of days in month, for the specified year and month.

Syntax

PYTHON
calendar.monthrange(year, month)