Dictionary assignment : Dictionary Assignment « Dictionary « Python
- Python
- Dictionary
- Dictionary Assignment
Dictionary assignment

x = {}
y = x
x['key'] = 'value'
print y
x = {}
print y
x = {}
y = x
y['key'] = 'value'
print y
print x.clear()
print y
Related examples in the same category