Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+8 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 (1 point)
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 (1 point)
...