Search engine | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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())

7th Mar 2022, 5:24 AM
PUSHPANJALI BADGUJAR
2 Answers
+ 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.
7th Mar 2022, 5:40 AM
Python Learner
Python Learner - avatar
+ 1
Thank you so much sir
7th Mar 2022, 5:45 AM
PUSHPANJALI BADGUJAR