0

Help finding bug

text = input( ) word = input( ) def search(text, word): if word in text: return “word found” else: return “ word not found” print(search(text, word))

20th Mar 2021, 5:30 AM
Salwa Seif
Salwa Seif - avatar
2 Respuestas
+ 2
text = input( ) word = input( ) def search(text, word): if word in text: return "word found" else: return "word not found" print(search(text, word)) Use double quotes and remove a space before else .
20th Mar 2021, 5:43 AM
TOLUENE
TOLUENE - avatar
0
thanks
20th Mar 2021, 5:46 AM
Salwa Seif
Salwa Seif - avatar