my_dict = {31: 'a', 21: 'b', 14: 'c'}
del my_dict[31]
print(my_dict)
# welcome to softhunt.net
# Creating a Dictionary
Dictionary = {0: 'Softhunt', 1: '.net',
2:{'i' : 'By', 'ii' : 'Ranjeet', 'iii' : 'Andani'}, 3: 'Greetings'}
print('Initial Dictionary: ', Dictionary)
# Deleting a Key value
del Dictionary[1]
print("
Deleting a specific key: ", Dictionary)
# Deleting a Key from
# Nested Dictionary
del Dictionary[2]['i']
print("
Deleting a key from Nested Dictionary: ", Dictionary)
squares = {1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
# remove a particular item, returns its value
# Output: 16
print(squares.pop(4))