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