Which of these can NOT be used as a dictionary key in Python?
Correct answer
B. list
B. list
Lists are mutable and unhashable, so they cannot be keys.
Asked in: Python Interview Dictionaries
https://docs.python.org/3/tutorial/datastructures.html#dictionariesNot sure why the answer is B? Ask here and get an explanation.