Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 12
A list is used as key - this is not possible, because it is not hashable. Only immutable objects can be used as keys. So it could be a solution to use tuple instead of list:
dl={"a":1,1:"a",(1,"a"):"two"}