You are viewing a single comment's thread. Return to all comments →
def mutate_string(string, position, character): s="" for i,char in enumerate(string): if i==position: s=s+character else: s=s+char 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 →
def mutate_string(string, position, character): s="" for i,char in enumerate(string): if i==position: s=s+character else: s=s+char
return s