0
The given code takes a text and a word as input and passes them to a function called search(). The search() function should
I tried solving thos question but it failed can anyone help me or give me a small hint
8 Respuestas
+ 4
we will help u but first u need to share your code
+ 2
Is it from python course ??
+ 1
Neelam Sangar
Have a look
"Code Blocks and Indentation | Flow of Control in Python | Peachpit" https://www.peachpit.com/articles/article.aspx?p=1312792&seqNum=3
It should be
def search(text,word) :
if word in text :
print ('Word found')
else:
print('Word not found')
text = input()
word = input()
search(text,word)
+ 1
Neelam Sangar u have already done with this ....
https://www.sololearn.com/post/1207374/?ref=app
0
Yes its from phyton course
0
Shairing my code with u HrCoder
0
It have very simple solution just use 'in' operator to search word is in text or not
0
Def search(text,word) :
If word in text :
Print ('word found')
else:
Print('word not found')
text=input()
Word=input()
Search(text,word)