(Solved) : Q3 Dowt Sun Mon Tue Wed Thu Fri Sat Day Week Tuple Year 2020 Cnt 3 2020 1 1 Wednesday Let Q44130997 . . .
Help with Python problem.
###################################### Q3 ############################### 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 3 for Wednesday, and keep adding one # m = 3 # this will be a variable to be looped through eventually. I use the convention of 0–11 for the twelve months # # 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 ###################################### Q3 ############################### 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 3 for Wednesday, and keep adding one # m = 3 # this will be a variable to be looped through eventually. I use the convention of 0–11 for the twelve months # # 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 ###################################### Q3 ############################### dowt = (‘Sun’, ‘Mon’, ‘Tue’, ‘Wed’, ‘Thu’, ‘Fr…
OR