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) out=calendar.weekday(year,month,day) days=list(calendar.day_name)
print(days[out].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 →
import calendar
M,D,Y=input().split() year=int(Y) month=int(M) day=int(D) out=calendar.weekday(year,month,day) days=list(calendar.day_name)
print(days[out].upper())