Mutations

  • + 0 comments

    def mutate_string(string, position, character): if len(string)>position: new_string=string[:position]+character+string[position+1:] return( new_string) else: new_string =string