I have two lists in Python, like these:
temp1 = [\'One\', \'Two\', \'Three\', \'Four\'] temp2 = [\'One\', \'Two\']
I need to create a third
If you run into TypeError: unhashable type: 'list' you need to turn lists or sets into tuples, e.g.
TypeError: unhashable type: 'list'
set(map(tuple, list_of_lists1)).symmetric_difference(set(map(tuple, list_of_lists2)))
See also How to compare a list of lists/sets in python?