fork(2) download
  1. x = {'username': 'admin', 'machines': ['foo', 'bar', 'baz']}
  2. y = x.copy()
  3. y['username'] = 'mlh'
  4. y['machines'].remove('bar')
  5. print(y)
  6. print(x)
Success #stdin #stdout 0.03s 9984KB
stdin
Standard input is empty
stdout
{'machines': ['foo', 'baz'], 'username': 'mlh'}
{'machines': ['foo', 'baz'], 'username': 'admin'}