import calendar yy = 2024 mm = 4 print(calendar.month(yy, mm))