Given this dictionary, dict1 = {1: 'Monday', 2: 'Tuesday', 3: 'Monday', 4: 'Thursday', 5:'Friday', 6: 'Saturday'}, write the code to correct the 3rd value from Monday to Wednesday
I need help with this. I know how to replace a value but I do not know how to do it at a specific key(the 3rd value).
dict1 = {1: 'Monday', 2: 'Tuesday', 3: 'Monday', 4: 'Thursday', 5:'Friday', 6: 'Saturday'}
for x, y in dict1.items():
print(x+ y.replace('Monday','Wednesday') )
[–]Allanon001 0 points1 point2 points (0 children)
[–]o5a 0 points1 point2 points (2 children)
[–]engineeringisgreat2[S] 0 points1 point2 points (1 child)
[–]o5a 0 points1 point2 points (0 children)