DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+2 =
Submit