You are viewing a single comment's thread. Return to all comments →
So you don't have to make an object or list of day names: print(list(calendar.day_name)[calendar.weekday(y, m, d)].upper())
print(list(calendar.day_name)[calendar.weekday(y, m, d)].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 →
So you don't have to make an object or list of day names:
print(list(calendar.day_name)[calendar.weekday(y, m, d)].upper())