Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python trim whitespace from end of string

>>> "    xyz     ".rstrip()
'    xyz'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #trim #whitespace #string
ADD COMMENT
Topic
Name
9+3 =