InterviewSolution
Saved Bookmarks
| 1. |
What are the characteristics of Python Dictionaries ? |
|
Answer» The 3 main characteristics of a dictionary are : 1. Dictionaries are Unordered : The dictionary elements (key-value pairs) are not in ordered form. 2. Dictionary Keys are Case Sensitive : The same key name but with different case are treated as different keys in Python dictionaries. 3. No duplicate key is allowed : When duplicate keys encountered during assignment, the last assignment wins. 4. Keys must be immutable : We can use strings, numbers or tuples as dictionary keys but something like [‘key’] is not allowed. |
|