+ 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?

16th Oct 2020, 2:57 AM
Andres Villarreal
Andres Villarreal - avatar
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.
16th Oct 2020, 3:10 AM
Nikolai Ivanov
Nikolai Ivanov - avatar
+ 4
write for y in text.split()
16th Oct 2020, 3:03 AM
Hima
Hima - avatar