I want to find the words of a text without using the split command | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I want to find the words of a text without using the split command

9th May 2020, 4:05 PM
Fatemeh Ghafouri
3 Answers
+ 5
You can check if its contain it or no by For example: S="sam go out" If "sam" in S: Print("true")
9th May 2020, 4:10 PM
Jason
Jason - avatar
+ 1
Fatemeh Ghafouri, may be you can give use a bit more information? Plesae give us a text and a word you wanted to find and show us how the ouput should look like. Also consider what should happen if the word exists multiple times in the text. And also tell us how to handle lower and upper case. Thanks!
9th May 2020, 5:15 PM
Lothar
Lothar - avatar
9th May 2020, 4:16 PM
Jason
Jason - avatar