You are viewing a single comment's thread. Return to all comments →
def mutate_string(string, position, character): a = list(string) a[position] = character k = "".join(a) return k
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Mutations
You are viewing a single comment's thread. Return to all comments →
def mutate_string(string, position, character): a = list(string) a[position] = character k = "".join(a) return k