Difference between List and Dictionary in Python
List | Dictionary |
1. A list is an ordered set of items. | 1. A dictionary is a data structure that is used for matching one item with another. |
2. In list, you can use indexing to access a particular item. | 2. In dictionary, you can use any type of value as an index. |
3. Lists are used to look up a value. | 3. Dictionary is used to take one value and look up another value. |
4. List is also known as mutable-versatile data type. | 4. Dictionary is also known as Lookup table. |