Mutations

  • + 0 comments
    def mutate_string(string, position, character):
        new_string = string[:position] + character + string[position + 1:]
        return new_string