# empty dictionary
my_dict = {}
# dictionary with integer keys
my_dict = {1: 'apple', 2: 'ball'}
# dictionary with mixed keys
my_dict = {'name': 'John', 1: [2, 4, 3]}
my_dict = {'name': 'Jack', 'age': 26}
# Output: Jack
print(my_dict['name'])
print(my_dict.get('age'))
# update value
my_dict['age'] = 27
print(my_dict)
# add item
my_dict['address'] = 'Downtown'
print(my_dict)
# remove particular element
my_dict.pop('age')
print(my_dict)
# access a particular element
print("Address :", my_dict.get('address'))
# remove all the elements
my_dict.clear()
print(my_dict)
To embed this project on your website, copy the following code and paste it into your website's HTML: