We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I have noticed with print() that weekday() return a number corresponding to the day in a week. (Monday = 0, Tuesday = 1, Wednesday = 2 ... Sunday = 6).
So I have created a dictionnary and use it with the function calendar.weekday() to return the good day name :
Calendar Module
You are viewing a single comment's thread. Return to all comments →
Maybe my solution could inspire someone :
I have noticed with print() that weekday() return a number corresponding to the day in a week. (Monday = 0, Tuesday = 1, Wednesday = 2 ... Sunday = 6).
So I have created a dictionnary and use it with the function calendar.weekday() to return the good day name :