Making Phonebook in python : i want to get this screen by fixing my current code
问题 I made my code like below.... But as i input the data such as spam & number, previous data is deleted. So i'd like to make multiple value in one key... (i think using list is kinda good method) For example, Key: spam - Value: 01012341111, 01099991234, Key: spam - Value: 01032938962, 01023421232, 01023124242 enter image description here In summary, I want to get this print (attached Picture) this is my code: enter code here phonebook = dict() ntype = ['spam', 'friend', 'family', 'etc'] trash =