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
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
0
share your coding attempt in oder to get helped ^^
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)
0
That's also tried but i didn't get output
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)