import datetime, calendar
year = 2022
month = 7
num_days = calendar.monthrange(year, month)[1]
days = [datetime.date(year, month, day) for day in range(1, num_days+1)]
위에서 구한 날짜들로 아래에서 요일 가져오기
WEEK_DAY = ["월", "화", "수", "목", "금"]
for day in days:
week_day = WEEK_DAY[day.weekday()]
print(week_day)