in Python by
Is A String Immutable Or Mutable In Python?

1 Answer

0 votes

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.

Related questions

0 votes
asked Jun 28, 2020 in Python by Robindeniel
0 votes
asked Jan 24, 2020 in JAVA by rahuljain1
0 votes
asked Dec 12, 2019 in Python by rajeshsharma