import calendar htmlcal = calendar.HTMLCalendar(calendar.MONDAY) print(htmlcal.formatmonth(2020, 12))