Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Set of lists

lists = set([ [2, 3], [1, 2] ])

Output:

Traceback (most recent call last):
  File "/home/gabor/work/slides/python/examples/sets/set_of_lists.py", line 1, in <module>
    lists = set([ [2, 3], [1, 2] ])
TypeError: unhashable type: 'list'