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 Answers
+ 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