Run
string = 'pythonhxamples' position = 6 new_character = 'e' string = string[:position] + new_character + string[position+1:] print(string)
Output