Mutations Solution Code in Python 3

x=input()
y=input().split()
y[0]=int(y[0])
d=x[:(y[0])]+y[1]+x[(y[0]+1):]
print(d)

Comments