DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python remove characters from end of string
foo = "test716" foo = foo[:-3] print(foo) # output will be "test"
PREVIOUS
NEXT
Tagged:
#python
#remove
#characters
#string
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit