Computer Science
What all types of values can you store in :
- dictionary-values ?
- dictionary-keys ?
Related Questions
Though tuples are immutable type, yet they cannot always be used as keys in a dictionary. What is the condition to use tuples as a key in a dictionary ?
Can you change the order of dictionary's contents, i.e., can you sort the contents of a dictionary ?
What type of objects can be used as keys in dictionaries ?
In no more than one sentence, explain the following Python error and how it could arise:
TypeError: unhashable type: 'list'