Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to strip white space of text in python?

sentence = ' hello  apple'
" ".join(sentence.split())
>>> 'hello apple'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #strip #white #space #text
ADD COMMENT
Topic
Name
3+3 =