replace part of string in list python code example
Example: replace by positions a string in a list with another string python
string = 'pythonhxamples'
position = 6
new_character = 'e'
string = string[:position] + new_character + string[position+1:]
print(string)
#output: pythonexamples