Categories

Dec 14, 2019 in Python

Q: Is A String Immutable Or Mutable In Python?

1 Answer

Dec 14, 2019

Python strings are indeed immutable.

Let’s take an example. We have an “str” variable holding a string value. We can’t mutate the container, i.e., the string, but can modify what it contains that means the value of the variable.

Click here to read more about Python
Click here to read more about Insurance

Related questions

Madanswer
Jun 28 in Python
Dec 22, 2019 in Python
Dec 14, 2019 in Python
...