Write a Python program to demonstrate removal of dictionary pair
Topic: Write a Python program to demonstrate removal of dictionary pair
Solution
test_dict = {"Arushi" : 22, "Anuradha" : 21, "Mani" : 21, "Haritha" : 21} print (f"The dictionary before performing remove is : {test_dict}") del test_dict['Mani'] print (f"The dictionary after remove is : {test_dict}")
List all Python Programs