refer

Python – How to avoid refer multiple names to one dict

Python – How to avoid refer multiple names to one dict Question: I am struggling with python dictionary. I have two dics named defaultSettings and personalSettings. I want to make function sets personalSettings‘s values to defaultSettings‘s values. But I don’t want to all changes be applied to defaulSettings. I tried this code: defaultSettings = {‘s1’: …

Total answers: 2