Mutations

  • + 0 comments
    def mutate_string(string, position, character):
        return "".join(character if i == position else c for i, c in enumerate(string))