Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

seeparate string without split function python

new_list = []
for sentence in old_list:
    word = ''
    for ch in sentence:
        if ch == ' ' and word != '':
            new_list.append(word)
            word = ''
        else:
            word += ch
    if word != '':
        new_list.append(word)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #seeparate #string #split #function #python
ADD COMMENT
Topic
Name
4+5 =