Search
 
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
Name
4+4 =