I am trying to add a list to a set using add() function, but it's giving an error - "TypeError: unhashable type: 'list'".
Which Python function should I use?
>>> a=set()
>>> b=[1,2,3]
>>> a.add(b)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unhashable type: 'list'