Python, Data Science, Data Engineering, Programming, Coding.
set([1,2,3,4,5]) # Creating a dictionary dict1 = {set1: 1, set2: 2} # TypeError: unhashable type: 'set' Output: TypeError Traceback (most recent call last) /projects/Cheatsheet/My Python Cheatsheet.ipynb Cell 1601 in 2 1 # Creating a dictionary ----> 2 dict1 = {set1: 1, set2: 2} TypeError: