- 1
search engine project
text = input() word = input() def search(text, word ): if word in text: print("Word found") else: print("Word not found") print(search(text, word)) please somebody help me with this code error
1 Respuesta
+ 9
Just do a small change remove that print from last statement.
text = input()
word = input()
def search(text, word):
if word in text:
print('Word found')
else:
print("Word not found")
search(text, word)