New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Hash tables
Implement a phone book using hash tables. How to handle the case where a person can have multiple phone numbers.
2 Answers
+ 4
Use a list-valued dictionary.
0
You can store a list as the value
{'someone':[2819,8313,69381]}