TypeError: 'str' object does not support item assignment (Python)
But I get the error: TypeError: 'str' object does not support item assignment python Share Improve this question Follow edited Feb 11, 2022 at 5:57 smci 31.5k 18 112 146 asked Sep 16, 2015 at 19:23 user3776740 41 1 1 2 4 Strings are immutable. If you want to change it, transform it into a list, manipulate the list, then jon it back to a string.