0
Trouble with Search engine project
I'm having issues with the code. Test cases given match the output but still gives me wrong answers. Can anyone help? text = input() word = input() def search(x, y): print(search (word, text)) if (word in text): print("word found") else: print("word not found")
4 Respostas
+ 4
I mentioned about output variable not input.
"Word not found"
+ 3
W should be uppercase in "Word...".
Better you take a look at the function lessons once.
0
The inputs were preassigned and both have lowercase so that is not the problem
0
text = input()
word = input()
def search(x, y):
if word in text:
print('Word found')
else:
print('Word not found')
return
search(text, word)