How do I create a search engine with python just to display word found and word not found | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I create a search engine with python just to display word found and word not found

Python for beginners am at the final quiz how do I get the search engine code, I am stumped two days now still don't know

14th Nov 2021, 7:03 PM
Tomilola Oluwafemi
Tomilola Oluwafemi - avatar
3 Answers
+ 6
tee_o , please post your attempt here, so that we can see where you get stuck. thanks!
14th Nov 2021, 7:33 PM
Lothar
Lothar - avatar
+ 2
Your code have uppercased every first letter, make it lowercase. Also you dont need anything inside else, remove "()" Also you never call function you make, and goal of function is to be reusable. So most function will have return not print inside, maybe you dont need to print this value every time. I suggest you to get back and read again about how function and how if/else work, and practice more, before you start with advanced python. https://code.sololearn.com/c9OUo04Mbi47/?ref=app
14th Nov 2021, 8:33 PM
PanicS
PanicS - avatar
0
Text = input() Word = input() Def search(text,word): If word in text: Print("word found") Else ( not word in text): Print("word not found")
14th Nov 2021, 7:38 PM
Tomilola Oluwafemi
Tomilola Oluwafemi - avatar