0

def search (text, found): if word in text: print("word found") else: print("word not found") Guy

I solved this problem why is not working python search ingine but does'n work help guys please

3rd Sep 2021, 12:19 PM
Husni
6 ответов
+ 5
There will be needed word as second parameter of the function instead found.
3rd Sep 2021, 12:22 PM
JaScript
JaScript - avatar
+ 2
What's the second parameter for?
3rd Sep 2021, 12:21 PM
Tim
Tim - avatar
+ 2
def search (text, word): if word in text: print("word found") else: print("word not found") Simple mistake, you changed the name found in word. Some testing search("hello how are you?", "you") search("hello how are you?", "bye")
4th Sep 2021, 7:39 AM
Gigi
+ 1
What is the second parameter??
5th Sep 2021, 2:41 AM
Mahfazzalin Shawon Reza
Mahfazzalin Shawon Reza - avatar
0
https://code.sololearn.com/cYkI26FaU3Wi/?ref=app See this If any problem in understanding then message me Happy Coding!
3rd Sep 2021, 12:26 PM
<★Shaurya Chauhan★>
<★Shaurya Chauhan★> - avatar
0
Husni The problem was you didn't made strings in search variable that will say for numbers In my code search for "red" And see how the code was framed If any problems then message me Happy Coding!
3rd Sep 2021, 2:07 PM
<★Shaurya Chauhan★>
<★Shaurya Chauhan★> - avatar