Mutations

  • + 0 comments
    def mutate_string(string, position, character):
    s = string
    i = position
    c = character
    list(s)
    
    return s[:i] + c + s[i+1:]
    
    if __name__ == '__main__':
    s = input()
    i, c = input().split()
    s_new = mutate_string(s, int(i), c)
    print(s_new)