Answers for "TypeError: 'str' object does not support item assignment"

4

str object does not support assignment python

>>> str1 = "mystring"
>>> list1 = list(str1)
>>> list1[5] = 'u'
>>> str1 = ''.join(list1)
>>> print(str1)
mystrung
>>> type(str1)
<type 'str'>
Posted by: Guest on April-09-2021
1

TypeError: 'str' object does not support item assignment

its not an item please goooooooooo anywhere
Posted by: Guest on September-02-2021

Code answers related to "TypeError: 'str' object does not support item assignment"

Browse Popular Code Answers by Language