You are viewing a single comment's thread. Return to all comments →
import calendar month, day, year = input().split() day_of_year = calendar.weekday(int(year), int(month), int(day)) if day_of_year == 0: print("MONDAY") elif day_of_year == 1: print("TUESDAY") elif day_of_year == 2: print("WEDNESDAY") elif day_of_year == 3: print("THRUSDAY") elif day_of_year == 4: print("FRIDAY") elif day_of_year == 5: print("SATURDAY") else: 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 →