+ 1
How does this work? - search engine
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'.
+ 2
Okay thanks.