Create a dictionary in Python

In python { } braces can be used to create dictionary. Dictionary is a key value pair which can be accessed and modified directly if the key is known.
# create dictionary
age = {'Musk': 43, 'Bill': 61}

# set the value corresponding to the key
age['Musk'] = 45

# get the value corresponding to the key
print(age['Musk'])

Output
45