You are viewing a single comment's thread. Return to all comments →
I think this is more of what they had in mind.
import calendar #calendar.Calendar(calendar.SUNDAY) user_input = input().split() month = int(user_input[0]) day = int(user_input[1]) year = int(user_input[2]) c = calendar.weekday(year, month, day) if c == 0: print("MONDAY") elif c == 1: print("TUESDAY") elif c == 2: print("WEDNESDAY") elif c==3: print("THURSDAY") elif c==4: print("FRIDAY") elif c== 5: print("SATURDAY") elif c==6: print("SUNDAY")
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 →
I think this is more of what they had in mind.