Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Why can't the content of a Python string be modified?
Because Python strings are implement as static arrays that do not permit changes
Because the Python developers didn't have time to implement that functionality at first and it was kept like that for compability reasons.
Because the memory storage used for the arrays doesn't allow changes after the object creation.
Because depending on the new character, the whole string should be recalculated due to an encoding change
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!