+ 1

How does this work? - search engine

https://code.sololearn.com/c35LZ430D2yA/?ref=app

5th Feb 2023, 9:08 PM
RocketLover
2 odpowiedzi
+ 4
The search function takes two inputs: 'text' and 'word'. It checks if the word is present in the 'text' and outputs "Word found" if it is present, otherwise it outputs "Word not found". The 'text' and 'word' are taken as input from the user. The function uses the 'in' operator to check if the 'word' is a substring of the 'text'.
5th Feb 2023, 9:17 PM
ArsenicolupinIII
+ 2
Okay thanks.
5th Feb 2023, 10:12 PM
RocketLover