Run
my_string = "HelloWorld" output_string = my_string.removesuffix("Apple") print(output_string)
Output