DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
remove trailing and leading spaces in python
text = " Hello World " text.strip() # Hello World
PREVIOUS
NEXT
Tagged:
#remove
#trailing
#leading
#spaces
#python
ADD COMMENT
Topic
COMMENT
Name
9+8 =
Submit