Q. Which of the following will raise a TypeError?
β
Correct Answer: (A)
my_dict = {[1, 2]: 'value'}
Explanation: Lists are mutable and cannot be used as dictionary keys, causing a `TypeError`.