(Solved) : 3 3 Q3 23 Dowt Sun Mon Tue Wed Thu Fri Sat Day Week Tuple Year 2020 Cnt 3 2020 1 1 Wednesd Q44087198 . . .

#%% %#3%#3## Q3 #### ## *### 23 dowt = (‘Sun’,’Mon’,’Tue’,’Wed’,’Thu’,’Fri’,’Sat’) # day-of-week-tuple # year = 2020 cnt = 3 # 2020/1/1 is a Wednesday, so let us start a counting index of # m = 3 # this will be a variable to be looped through eventually. I use the convention of 0-11 for the twelve months for Wednesday, and keep adding one # As the cnt value changes, we want to print out the day-of-week info. # So 3 gives Wed, 7 gives Sat, 8 should gives Sun, and so forth. # use the very common method of finding the remainder (mod 7), print out that info in a single line of code dow = ????? Show transcribed image text #%% %#3%#3## Q3 #### ## *### 23 dowt = (‘Sun’,’Mon’,’Tue’,’Wed’,’Thu’,’Fri’,’Sat’) # day-of-week-tuple # year = 2020 cnt = 3 # 2020/1/1 is a Wednesday, so let us start a counting index of # m = 3 # this will be a variable to be looped through eventually. I use the convention of 0-11 for the twelve months for Wednesday, and keep adding one # As the cnt value changes, we want to print out the day-of-week info. # So 3 gives Wed, 7 gives Sat, 8 should gives Sun, and so forth. # use the very common method of finding the remainder (mod 7), print out that info in a single line of code dow = ?????
Expert Answer
Answer to #%% %#3%#3## Q3 #### ## *### 23 dowt = (‘Sun’,’Mon’,’Tue’,’Wed’,’Thu’,’Fri’,’Sat’) # day-of-week-tuple # year = 2020 cnt…
OR