lrowoll strings are immutable the standard wisdom is that python strings are immutable you can' change string' valueonly the reference to the string like sox "hellox "goodbyenew stringwhich implies that each time you make change to string variableyou are actually producing brand new string because of thistutorials out there warn you to avoid string concatenation inside loop and advise using join instead for performance reasons even the official documentation says sothis is wrong sort of there is common case for when strings in python are actually mutable will show you an example by inspecting the string object' unique id using the builtin id(functionwhich is just the memory address the number is different for each object (objects can be shared thoughsuch as with interning an unchanging article alludes to the item which is once made can' change its worth all its lifetime attempt to execute the accompanying codename_ "aarunname_ [ 'tyou will get mistake message when you need to change the substance of the string traceback (latest call last)record "/home/ca dc fa ad ca py"line in name_ [ 'ttypeerror'strobject doesn' uphold thing task arrangement one potential arrangement is to make another string object with vital alterationsname_ "aarunname_ "tname_ [ :print("name_ "name_ "and name_ "name_