from copy import deepcopyd = {}d['names'] = ['Alfred', 'Bertrand']c = d.copy()dc = deepcopy(d)d['names'].append('Clive')print(c)print(dc)
Standard input is empty
{'names': ['Alfred', 'Bertrand', 'Clive']} {'names': ['Alfred', 'Bertrand']}
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!