1# using strings as keys in dict
2
3d = {'1': 1, '2': 2}
4print(d['1'], d['2'])
5
6d['3'] = 3
7print(d['1'], d['2'], d['3'])
8
9d['2'] = 222
10print(d['1'], d['2'], d['3'])
11
12d2 = dict(d)
13print('2' in d2)
14print(id(d) != id(d2), d == d2)
15