Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

trimming spaces in string python

a = "      yo!      "
b = a.strip() # this will remove the white spaces that are leading and trailing
 
PREVIOUS NEXT
Tagged: #trimming #spaces #string #python
ADD COMMENT
Topic
Name
2+7 =