KnowledgeBoat Logo

Computer Science

What do you understand by ordered collection and unordered collection ? Give examples.

Python Dictionaries

CBSE

1 Like

Answer

Ordered Collection is the one in which the position of each element is fixed.
Example: List, strings, Tuples

Unordered Collection is the one in which position of each element is not fixed i.e., the order of all the elements are not maintained.
Example: Sets, Dictionaries

Answered By

1 Like


Related Questions