0
I want to find the words of a text without using the split command
3 odpowiedzi
+ 5
You can check if its contain it or no by
For example:
S="sam go out"
If "sam" in S:
Print("true")
+ 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!
0
If you need more on this topic i can tell to you or you can see it here
https://www.dummies.com/programming/JUMP_LINK__&&__python__&&__JUMP_LINK/how-to-search-within-a-string-in-python/