What is difference between list and dictionary?
Answer:A list is an ordered sequence of objects, whereas dictionaries are unordered sets. But the main difference is that items in dictionaries are accessed via keys and not via their position. ... The values of a dictionary can be any Python data type. So dictionaries are unordered key-value-pairs