• + 11 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())