Michael M. answered 04/21/22
Caltech grad teaches Python the way your brain wants to learn
This could be done a little simpler with a list:
def day_name(day_number):
return ['Sunday', 'Monday', 'Tuesday', ..., 'Saturday'][day_number]
And of course this doesn't take error handling into account.