You are viewing a single comment's thread. Return to all comments →
import calendar
m, d, y = input().split()
year = int(y) month = int(m) day = int(d)
week_day = calendar.weekday(year, month, day) week_name = calendar.day_name[week_day].upper()
print(week_name)
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 →
import calendar
m, d, y = input().split()
year = int(y) month = int(m) day = int(d)
week_day = calendar.weekday(year, month, day) week_name = calendar.day_name[week_day].upper()
print(week_name)