When I try to add a list to a set using add() function, it gives error: "TypeError: unhashable type: 'list'". How to fix this error?
E.g.
>>> a={2,3,4}
>>> b=[8,9]
>>> a.add(b)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unhashable type: 'list'