For example I have a string:
word = '__________'
And I wanted to change the character e to I using replace but not by the letter but using index position of e which is 5
new = word.replace(n[5], 'i')
print(new)
Which won't work and give me an output like this
>>>iiiiiiiiii
Is there any way to replace a string using the index position?