You are viewing a single comment's thread. Return to all comments →
def mutate_string(string, position, character): return string[:position] + character + string[position+1:]
or
def mutate_string(string, position, character): string_list = list(string) string_list[position] = character return ''.join(string_list)
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 →
or