Discover the answers to your questions at Westonci.ca, where experts share their knowledge and insights with you. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.

In Python, what is the major difference between lists and dictionaries? (5 points) Dictionaries cannot be changed after creation, while lists can be changed. Dictionaries require keys, while lists do not. Lists cannot be changed after creation, while dictionaries can be changed. O Lists require keys, while dictionaries do not.​

Sagot :

Answer:

Dictionaries require keys, while lists do not.

Explanation:

A list is an ordered sequence of objects, whereas dictionaries are unordered sets. However, the main difference is that items in dictionaries are accessed via keys and not via their position.