x = {'username': 'admin', 'machines': ['foo', 'bar', 'baz']}y = x.copy()y['username'] = 'mlh'y['machines'].remove('bar')print(y)print(x)
Standard input is empty
{'machines': ['foo', 'baz'], 'username': 'mlh'} {'machines': ['foo', 'baz'], 'username': 'admin'}
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!