Computer Science
What do you understand by ordered collection and unordered collection ? Give examples.
Python Dictionaries
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
2 Likes
Related Questions
- Which of the following types qualify to be the keys of a dictionary? - String
- tuple
- Integer
- float
- list
- dictionary
 
- Can you change an element of a sequence or collection? What if a collection is a dictionary? What if a sequence is a string? 
- How do you add key:value pairs to an existing dictionary? 
- Can you remove key:value pairs from a dictionary and if so, how?