PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
c=0
def search(text,word):
t=text.split()
for i in t:
if i==word:
c+=1
return False
text = input()
word = input()
#print(search(text, word))
if c==0:
print("Word not found")
else:
print("word found")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run