You are viewing a single comment's thread. Return to all comments →
s = string[:position] + character + string[(position + 1):]
OR
s = list(string) s[position] = character s = "".join(s) return s
Seems like cookies are disabled on this browser, please enable them to open this website
Mutations
You are viewing a single comment's thread. Return to all comments →
s = string[:position] + character + string[(position + 1):]
OR
s = list(string) s[position] = character s = "".join(s) return s