Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

strip in split python

my_string = "blah, lots  ,  of ,  spaces, here "
result = [x.strip() for x in my_string.split(',')]
# result is ["blah", "lots", "of", "spaces", "here"]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #strip #split #python
ADD COMMENT
Topic
Name
4+5 =