I have the following code:
 d1=set()
 d2=set()
 d1={[12,1]}  
print(d1 & d2)
error:
TypeError: unhashable type: 'list'
What does this mean? Cant the set contain a list element? How do we rectify?
Thanks, Sonia
I have the following code:
 d1=set()
 d2=set()
 d1={[12,1]}  
print(d1 & d2)
error:
TypeError: unhashable type: 'list'
What does this mean? Cant the set contain a list element? How do we rectify?
Thanks, Sonia
