Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+7 votes

I keep getting " TypeError: unhashable type: 'list' " error every time I attempt to make my 2d list into a set. What should I do?

asked in CSC201 Spring 2021 by (8 points)
0

You could have a set of tuples, but you can't have a set of lists.

Question: what's the context? What are you trying to do that a list of lists won't work for?

0

I figured out the problem, I figured out another way to do it. Thank you

1 Answer

0 votes

You would need a 3D list then.

answered by (2.3k points)
...