import calendar cal = calendar.TextCalendar() cal.prmonth(2024, 6)