Search
 
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
Name
9+8 =