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
month , day , year = map(int,input().split())
weekday_index = calendar.weekday(year , month , day)
weekday_name = calendar.day_name[weekday_index]
print(weekday_name.upper())
Seems like cookies are disabled on this browser, please enable them to open this website
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
month , day , year = map(int,input().split())
weekday_index = calendar.weekday(year , month , day)
weekday_name = calendar.day_name[weekday_index]
print(weekday_name.upper())