Hi!
When I try to create a set with tuples that have a list in the first element I get type error: unhashable type:list.
for example:
list_of=[(['vendita','diamanti','rubati'],'MILANO'), (['mata','hari','ha'],'CANCUN')]
set_of=set(list_of)
this happens also when I add the tuples to the set directly one at a time
Do you know why this happens? Do you have any other ways through which I can create a set of these tuples?
Would really appreciate any suggestions. Thank you.
When I try to create a set with tuples that have a list in the first element I get type error: unhashable type:list.
for example:
list_of=[(['vendita','diamanti','rubati'],'MILANO'), (['mata','hari','ha'],'CANCUN')]
set_of=set(list_of)
this happens also when I add the tuples to the set directly one at a time
Do you know why this happens? Do you have any other ways through which I can create a set of these tuples?
Would really appreciate any suggestions. Thank you.