5  Dictionaries

x = {'one':23, 'two':7, 'three':9}
x
{'one': 23, 'two': 7, 'three': 9}
type(x)
dict
z = {'four':68, 'five':19}

5.1 Merge dictionaries

{**x, **z}
{'one': 23, 'two': 7, 'three': 9, 'four': 68, 'five': 19}

5.2 keys(): Get dictionary keys

x.keys()
dict_keys(['one', 'two', 'three'])

5.3 values(): Get dictionary values

x.values()
dict_values([23, 7, 9])