# Program 4: Demonstrate use of Dictionaries thisdict={ "NAME":"Vishal","PLACE":"Sankeshwar","USN":"1711745"} print("Directory Content=",thisdict) x=thisdict["PLACE"] print("\n PLACE is ",x) print("\n Keys in the dictionary are") for x in thisdict: print(x) print("In Values in this dictionary are: ") for x in thisdict: print(thisdict[x]) print("\n Both keys and values of the dictionary are.") for xy in thisdict.items(): print(xy) print("in Total items in the dictionary:",len(thisdict)) thisdict["District"]="Belagavi" print("in Added new item is = ",thisdict) thisdict.pop("PLACE") print("in After removing the item from dictionary ",thisdict) del thisdict["USN"] print("in After deleting the item from dictionary=",thisdict) thisdict.clear() print("n Empty Dictionary ",thisdict) thisdict={ "NAME" "Vishal 'PLACE Sankeshwar" "USN: 1711745"} print("in Present dictionary content=",thisdict) mydict=thisdict.copy() print("Copy of dictionary is =",mydict)