Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python remove blanks from string

sentence = ' hello  apple  '
sentence.strip()
>>> 'hello  apple'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #remove #blanks #string
ADD COMMENT
Topic
Name
1+5 =