[Solved] Clarification needed regarding immutability of strings in Python [closed]
In CPython, ids relate to where in memory the string is stored. It does not indicate anything about mutability. How memory is used exactly is an internal implementation detail. You could of course do a deep dive into the internals of CPython’s memory management to disentangle that in-depth, but that’s not really useful. (Im)mutability can … Read more