0

Alguien me ayuda con el proyecto de motor de busqueda de python???

def search(word,text): if word in text: print("Word not found") else: print("Word found") text = input() word = input() print(search(text, word)) https://code.sololearn.com/cNxkcDJsH3y9/?ref=app

26th Oct 2021, 9:48 PM
Victoria Abi Rached
2 ответов
+ 3
Asi debe escribirse.. def search (text, word): if word in text: return ("Word found") #se usa return entre paréntesis else : return ("Word not found")#se usa return entre paréntesis text = input() word = input() print (search(text, word))
20th Sep 2022, 3:31 PM
MiguelOnline
MiguelOnline - avatar
0
The last line looks wrong, make it like this: print(search(word, text))
16th Jul 2022, 5:44 PM
Paul
Paul - avatar