The keys of a dictionary must be of immutable types.
1 Like
True
Reason — Dictionaries are indexed by keys. Hence its keys must be of any non-mutable type.
Answered By
2 Likes
All elements in a list must be of the same type.
A given object may appear in a list more than once.
You can combine a numeric value and a string by using the + symbol.
The clear( ) removes all the elements of a dictionary but does not delete the empty dictionary.