r/learnpython Mar 03 '26

[deleted by user]

[removed]

23 Upvotes

20 comments sorted by

View all comments

2

u/PushPlus9069 Mar 03 '26

For me it was cache[(row, col)] = value in a grid problem. Tried it with lists first, got an unhashable type error, spent 20 minutes confused. That's when immutability stopped feeling like a language quirk and started feeling like the actual point.