Python, Data Science, Data Engineering, Programming, Coding.
dictionary dict1 = {'key1': 1, 'key2': 2, 'key3': 3} dict2 = {'key4': 4, 'key5': 5, 'key6': 6} # Accessing a value in a dictionary print(dict1['key1']) # Adding a new key-value pair to a dictionary dict1['key4'] = 4 # Changing the value of a key in a dictionary dict1['key1'] = 0 # Deleting a