+ 1

Search engine goes wrong for me

How to explain it works for only 2nd, 5th and 6th case ? text = (input()) word = (input()) def search(text, word): text=text.split('""') word=word.split('""') if word in text: return "Word found" else : return "Word not found" print(search(text,word))

4th Sep 2022, 3:01 PM
Cédric De Craim
Cédric De Craim - avatar
2 Réponses
+ 2
You do not need to split anything.
4th Sep 2022, 3:27 PM
JaScript
JaScript - avatar
+ 1
That's right
4th Sep 2022, 3:35 PM
Cédric De Craim
Cédric De Craim - avatar