Q. Why are strings called immutable?


Answer:-

Strings are immutable means that the content of the string cannot be changed after it has been created. Thus, every time we perform any operation on a string that changes it, Python will internally create a new string rather than modifying the old string in place.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post