Dec-13-2020, 09:11 PM
(Dec-13-2020, 04:57 PM)bowlofred Wrote: You'll need to show the code. When I change the code to have the line above, it doesn't do that. Show what you're running now.
It's working now, i don't know what i changed i just restarted the program. Here is the final code, btw thank you everyone for the help.
def tokenize(lines):
words = []
for line in lines:
start = 0
while start < len(line):
while line[start].isspace() == False:
print(line[start])
start = start +1
start = start+1
return words
tokenize([' apple pie ',' is in the making of '])