Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to remove last letter from string

str = "string_example"
str = str[:-1] # -> returns "string_exampl" (-> without the "e")
 
PREVIOUS NEXT
Tagged: #python #remove #letter #string
ADD COMMENT
Topic
Name
1+5 =