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))
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 .
0
thanks