kvps = { '1' : 1, '2' : 2 } theCopy = kvps kvps['1'] = 5 sum = kvps['1'] + theCopy['1'] print sum
Standard input is empty
10
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!