Use the MutableString class in the UserString module:
1 >>> from UserString import MutableString 2 >>> s = MutableString('python') 3 >>> s[2:4] = 'l' 4 >>> print s 5 pylon
CategoryAskingForHelp CategoryAskingForHelpAnswered
Unable to edit the page? See the FrontPage for instructions.