Skip to content

Instantly share code, notes, and snippets.

@abhinavkorpal
Created April 11, 2017 05:49
Show Gist options
  • Save abhinavkorpal/832b77186237486a98fe71d5288f4acb to your computer and use it in GitHub Desktop.
Save abhinavkorpal/832b77186237486a98fe71d5288f4acb to your computer and use it in GitHub Desktop.
Mutations
def mutate_string(string, position, character):
l = list(string)
l[position] = c
return "".join(l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment