0
Это правильно???
def search(a, b): c = a.split(" ") if b in c: print("Word found") else: print("Word not found") text = input() word = input() print(search(text, word))
1 Respuesta
+ 1
We can't tell u if your code is right or not before u tell us what is the object of writing this code ⁉️
But
The code is syntaxly right
I understand form your code that u want to search about word in a string and print particular sentence if the word is in the string and a nother sentence if is not