Skip to content
Home » TypeError: unhashable type: ‘list’

TypeError: unhashable type: ‘list’

To solve How to overcome TypeError: unhashable type: ‘list’ error follow below methods.

ERROR LOG

TypeError: unhashable type: ‘list’

How to solve How to overcome TypeError: unhashable type: ‘list’ ?

As a key in a dictionary, Python dictionaries only accept hashable data types. A list is not a data type that can be hashed. If you use a list as a key in a dictionary, you will get a “TypeError: unhashable type: ‘list'” problem.

When you try to assign a list as a key in a dictionary, you get the “TypeError: unhashable type: ‘list'” problem. To avoid this problem, only use a hashable object as a dictionary key, such as a string or a tuple.

Hope the above solution works.

Also read :

EnvironmentError: mysql_config not foundv
requests.exceptions.SSLError: [Errno 1] _ssl.c:503: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed