updating map when the element of the dictionary is updatedthe result is instantly updated in the result of the chainmap in the below examplewe see that the new updated value reflects in the result without explicitly applying the chainmap method again import collections dict {'day ''mon''day ''tue'dict {'day ''wed''day ''thu'res collections chainmap(dict dict print(res maps,'\ 'dict ['day ''friprint(res maps,'\ 'when the above code is executedit produces the following result[{'day ''mon''day ''tue'}{'day ''wed''day ''thu'}[{'day ''mon''day ''tue'}{'day ''wed''day ''fri'}