Unhashable List In A Tuple Key
cache = {}
key = (1, [2, 3])
cache[key] = "value"
This raises an exception before cache ever gets the entry. Name the exception class exactly (for example, ValueError).
Sign in to answer questions and track your progress
Sign In