Can you give me a correct code or correction my code. Because i dot know how make a search engine
def search (text,word):
text = str(input("this is awesome"))
word = str(input("awesome")
if word is present in the text:
else word is not present in the text:
print("word not found")
first you not need anything as input argument in code coaches /:practices context...
second, your conditions are not valid python...
else doesn't take condition, and testing if "word is present in the text" must be written "word in text"
your function body must be indented:
# inside function
# inside condition true
# inside else
# ouside function
and if you print function call, then you mist return a value from it...
or you can just call function and print inside it...