fork download
  1. from copy import deepcopy
  2.  
  3. d = { d['names'] = ['Alfred', 'Bertrand']}
  4. c = d.copy()
  5. dc = deepcopy(d)
  6. d['names'].append('Clive')
  7. print d
  8. print dc
  9.  
Runtime error #stdin #stdout 0.03s 6352KB
stdin
Standard input is empty
stdout
Standard output is empty