You are viewing a single comment's thread. Return to all comments →
import calendar import datetime date_time = input().split() month = date_time[0] day = date_time[1] year = date_time[2]
day_number = calendar.weekday(int(year), int(month), int(day)) day_name = calendar.day_name[day_number] print(day_name.upper())
Calendar Module
You are viewing a single comment's thread. Return to all comments →
Enter your code here. Read input from STDIN. Print output to STDOUT
import calendar import datetime date_time = input().split() month = date_time[0] day = date_time[1] year = date_time[2]
day_number = calendar.weekday(int(year), int(month), int(day)) day_name = calendar.day_name[day_number] print(day_name.upper())