I'm trying to get the difference between temp1 and temp2 which will be 10.25.60.156 and 10.22.17.180 . Since the data in temp2 has brackets I've been receiving this error:
z = set(temp1).symmetric_difference(set(temp2))
TypeError: unhashable type: 'list'
. How can I get the difference between these two with one containing a bracket? Thanks in advance!
temp1 = ['10.25.39.70', '10.25.16.160', '10.25.60.156']
temp2 = [['10.25.16.160'], ['10.22.17.180'], ['10.25.39.70']]
z = set(temp1).symmetric_difference(set(temp2))
print(z)