I mean, i want to replace str[9:11] for another string. If I do str.replace(str[9:11], \"###\") It doesn\'t work, because the sequence [9:11] can b
str[9:11]
str.replace(str[9:11], \"###\")
str = "cdabcjkewabcef" print((str[::-1].replace('cba','###',1))[::-1])