When are dictionaries more useful than lists ?
Answers
Answered by
2
Dictionary utilizes a hash search, while the list allows you to walk through the list before you find the answer from the start to finish every time. To bring it in another way.
Explanation:
- The list is going to be easier than the list on the first item because there is nothing to look up.
- Python dictionary is a hash table implementation and is a key-value inventory.
- It is not ordered, and it allows the keys to be a dynamic array. It's also easy for key searches.
- Key values may be of any form of hashtable (i.e. not a dictation) and may be mixed.
- Values may be of any kind (including other dictates) and the forms may be mixed.
Learn more:-
brainly.in/question/15327607
Similar questions