a=0 while a!=1: print("1. add information") print("2. display all information") print("3. search a particular info") print("4. delete a particular info") print("5. modification a particular info") print("6. exit") ch=int(input("enter your choice")) d={} if(ch==1): n=int(input("how many elements u want to enter")) for i in range(n): r=input("enter rollno") n=input("enter name") m=int(input("enter marks")) d[r]=n,m print(d) elif(ch==2): for i in d: print(i,d[i]) elif(ch==3): s=input("enter the key which u want to search") for i in d: if(i==s): print(d[i]) elif(ch==4): s=input("enter the key which u want to search") for i in d: if(i==s): d.pop(s) print(d) elif(ch==5): s=input("enter the key which u want to search") v=int(input("enter the value")) d[s]=v print(d) elif(ch==6): a=1