Код:
import calendar
b_day, b_month, b_year = map(int,input('Enter your birthdate (for example 24 08 1991): ').split())
b_weekday = calendar.weekday(b_year, b_month, b_day)
print('Your birthday:',calendar.day_name[b_weekday], '\n')
c = calendar.TextCalendar()
c.prmonth(b_year, b_month)