How can I remove the last character of a string in python? [duplicate] September 25, 2023 by Tarik The easiest is as @greggo pointed out string="mystring"; string[:-1]