DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+5 =
Submit