0

python beginner search engine program output can't get

I finished my code but some mistake in that program please help me to get an output for search engine program

18th Mar 2021, 10:58 AM
Selvamani
Selvamani - avatar
5 odpowiedzi
+ 1
def search(text, word): if word in text: print("word found") else: print("word not found") text=input() word=input() search() This is my code rectify my mistakes please
18th Mar 2021, 11:51 AM
Selvamani
Selvamani - avatar
0
share your coding attempt in oder to get helped ^^
18th Mar 2021, 11:38 AM
visph
visph - avatar
0
I guess I remember that you should capitalize output (first letter only)... but you should at least pass text and word in the arguments of the search function call: search(text,word)
18th Mar 2021, 11:53 AM
visph
visph - avatar
0
That's also tried but i didn't get output
18th Mar 2021, 11:55 AM
Selvamani
Selvamani - avatar
0
# Selvamani you should get (right) output if you use (edited to capitalize output): def search(text, word): if word in text: print("Word found") else: print("Word not found") text=input() word=input() search(text,word)
18th Mar 2021, 12:02 PM
visph
visph - avatar