Help me Pyton | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
19th Jun 2022, 5:25 PM
Siroj Quziboyev
Siroj Quziboyev - avatar
3 Answers
0
def search(text, word): text = input() word = input() if word in text: return "Word found" else: return "Word not found" print(search(text, word))
19th Jun 2022, 5:27 PM
Siroj Quziboyev
Siroj Quziboyev - avatar
0
you shouldn't use the input() inside the function it should be used like this: text = input() word = input() print(search(text, word)) --------‐------ And on another note, make sure to properly post your question next time. Tags are a good place to put your language you are using, not code. It's important to write good questions to receive good answers!
19th Jun 2022, 5:39 PM
Apollo-Roboto
Apollo-Roboto - avatar
0
I do'nt understand
20th Jun 2022, 2:39 AM
Siroj Quziboyev
Siroj Quziboyev - avatar