python how to remove last letter from string

30

#Removing last three characters
foo = foo[:-3]

Comments

Submit
0 Comments