I have following two dictionaries
x = {0:[1,2,3], 1:[1,2,3], 2:[1,2,3]}
y = {0:[1,2,3], 1:[1,2,3], 2:[1,2,3]}
I need to check the similarity of these two dictionaries. I am using following code for that
shared_items = set(x.items()) & set(y.items())
But it gives me
TypeError: unhashable type: 'list'
error.
What is the reason for this issue and how to correct it.