hacker rank python problem(mutations)

MUTATIONS


def mutate_string(string, position, character):
    mylist=list(string)
    mylist[position]=character
    mylist = ''.join(mylist)
    return mylist

Compiler Message
Success
Input (stdin)Download
abracadabra
5 k
Expected OutputDownload
abrackdabra

Comments

Popular posts from this blog

Amazon Web Services

Google Code-In mentorship experience :)

Hacker Rank all java and python problem solutions