In the below code my assert statements are succeeding, but as you can see I’m getting different outputs when I input the key ‘hey’ in my dictionaries and I don’t understand why.
all_dcts = ChainMap(dct1,lsj, dct3)
len(all_dcts.maps[0])==54343
len(all_dcts.maps[1])==85677
len(all_dcts.maps[2])==125678
print(dct3['hey'])
# 'you'
print(all_dcts['hey'])
# ''
2