SyntaxFix
Write A Post
Hire A Developer
Questions
The easiest is
as @greggo pointed out
string="mystring"; string[:-1]