Python Eliminar el último carácter de la cadena
str = "string"
str = str[:-1] # Returns "strin"
Batman
str = "string"
str = str[:-1] # Returns "strin"
st = "abcdefghij"
st = st[:-1] // Returns string with last character removed
foo = foo[:-n]