How do you split a string in python without split?
Answer
Append (not extend ) sentence_list to the new list and move onto the next string.
…
Case 1: One list of strings ( old_list ) split into one new list of strings ( new_list ).
Answer
Append (not extend ) sentence_list to the new list and move onto the next string.
…
Case 1: One list of strings ( old_list ) split into one new list of strings ( new_list ).
- Loop through the strings. …
- Create a new string to keep track of the current word ( word ).
- Loop through the characters in each of these strings.