+ 1
Whats the error in my code plz help
https://code.sololearn.com/cc5dSpSf4peL/?ref=app I don't know why it's not counting the "you's" in my text :/ can someone help me plz?
2 Answers
+ 2
Because 'y' contain only 1 symbol from text, not word. You can use function split() to convert string text to list of words.
+ 4
write
for y in text.split()