Difference between lists and dictionaries in python
Answers
Answered by
8
A list can store a sequence of objects in a certain order such that you can index into the list, or iterate over the list. List is a mutable type meaning that lists can be modified after they have been created.
A dictionary is a key-value store. It is not ordered and it requires that the keys are hashable. It is fast for lookups by key.
A dictionary is a key-value store. It is not ordered and it requires that the keys are hashable. It is fast for lookups by key.
Similar questions