why is a dictionary termed as an unordered collection of objects ?
Answers
Answered by
27
sets are unordered collections that don't allow duplication so if you add an element to a set several times, the result is the same as if you added the element once. .......dictionaries are sets of special kind of object called Association which are key-value pairs
Answered by
13
Why dictionaries are unordered collection:
• Dictionary is a data structure which is a important value structure, optimized for fast storage and recovery based on key.
• In python, dictionaries are un-ordered because Python dictionaries are not intended to be in order, as simple as that. If we want to collect a set of objects in order, we have only one choice of accessing them: through index.
Hope it helped...
Similar questions