Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to remove spaces in string in python

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