1import calendar
2
3# to set the first weekday to SUNDAY.
4calendar.setfirstweekday(calendar.SUNDAY)
5print(calendar.month(2020, 10 ))
6
1import calendar
2yio = int(input('Input a month'))
3s = int(input('Input a year'))
4print(calendar.month(s,yio))
1class CustomHTMLCal(calendar.HTMLCalendar):
2 cssclasses = [style + " text-nowrap" for style in
3 calendar.HTMLCalendar.cssclasses]
4 cssclass_month_head = "text-center month-head"
5 cssclass_month = "text-center month"
6 cssclass_year = "text-italic lead"
7