Monday, January 8, 2018

python dictionary datatypes features

x = {1:2, 'hello': 'boroo'}
print x

y = 'world'
x.update({'x':y})
x['y'] = 'yeald'
print x['x']
print x

No comments: