Run
myStr = 'apple' index = 3 output = myStr[:index] + myStr[index + 1: ] print(f'Input : {myStr}') print(f'Output : {output}')
Output