Chapter 7 :- Dictionaries 1. How are dictionaries different from lists? SOLUTION. The dictionary is similar to lists in the sense that it is also a collection of like lists BUT it is different from lists in the sense that lists are sequential collections (ordered) s dictionaries are non-sequential collections (unordered). In lists, where there is an order associated with the data-items because they act as storage unitat other objects or variables you've created. Dictionaries are different from lists and tuples because the group of objects they hold aren't in any particular order, but rather each object has its own uniq data-items name, commonly known as a key. 2. How are objects stored in lists and dictionaries different? SOLUTION. The objects of values stored in a dictionary can basically be anything (even the nothing type defined as Nene), but keys can only be immutable type-objects r.g. strings, tuples, integrs, etc When are dictionaries more useful than lists? SOLU...
All computer course for class 9th to 12th with proper practical and theory .........