+ 1
Search engine
# This code is not executed...what wrong on this code someone please help to me text = input() word = input() def search(): if word in text: return "word found" else: return "word not found" print(search())
2 odpowiedzi
+ 1
Hi PUSHPANJALI!
This seems like working fine. Probably, w is expected as an uppercase letter if it's an attempt to a challenge.
FYI,functions will still work as normal even if none of the parameters are actually used within the function code itself. However, doing this may be counterintuitive, as the purpose of parameters is to allow different input values to be used when running a function to produce results based on the input.
+ 1
Thank you so much sir