Jun-01-2017, 02:22 AM
I just did some sample code to show what I am talking about, it is more comprehensive at school, but you will get the idea
dict = {0: "David", 1 : "bill", 2 :"seth"} print (dict) ask=0 while ask != 4: ask=int(input("Do you want 1) add 2) delete 3) clear list, 4) exit")) if ask == 1: add=input("Who do you want to add?") dict[len(dict)]=add print(dict) elif ask == 2: newdel=int(input("which number do you want to delete?")) del dict[newdel] print(dict)