Question: what is difference between tuple list set and dictionary in python programing language?
Answer: Difference between lists and tuples Also, you can't use a list as a key for a dictionary. This is because only immutable values can be hashed. Hence, we can only set immutable values like tuples as keys. But if you still want to use a list as a key, you must turn it into a tuple first.