Q.

Which of the following isn’t true about dictionary keys?

A. more than one key isn’t allowed
B. keys must be immutable
C. keys must be integers
D. when duplicate keys encountered, the last assignment wins
Answer» C. keys must be integers
Explanation: keys of a dictionary may be any data type that is immutable.
669
0
Do you find this helpful?
7

Discussion

No comments yet