Search engine (python for beginners’ last test)  | SoloLearn: Learn to code for FREE!

0

Search engine (python for beginners’ last test) 

I’ll be glad to find someone who can help me to solve this. Thanks everyone🙏

3/1/2021 6:22:51 PM

Md Hamed / Md Abdellahi

16 Answers

New Answer

+1

Hi! Please show us your code and task, it will improve and speed up the help. how do we know where you're stuck?

+1

well, the task was to check if a word is in the text or not, example: input: « this an example text » « exapmle » output: word found my_input:👇 text = input() word = input() def search(text,word): print("word" in "text") search()

+1

1. First of all, you even wrote down the task incorrectly, how can we give you the right help if the task is already flawed from the very beginning? read the task carefully and answer: what should your function do and what should the result be? 50% of the completed task is a correct understanding of the task conditions. 2. explain what your code does?

0

if u need help, inbox me, but provide your trial first. wish u great continuation 🙏

0

Boeh, se agrandó.

-1

no problem bro. But this is how a search engine with python looks like https://towardsdatascience.com/how-to-build-a-search-engine-9f8ffa405eac

-1

Mø Hâmed Try this: Maybe helps you def seacrh(text,word) : if word in text : print ('Word found') else: print('Word not found') text = input() word = input() seacrh(text,word)

-1

def search(): a1 = input() b1 = input() if b1 in a1: print ("Word found") else: print ("Word not found") search()

-2

Thanks bro, i can’t express how grateful I am to you🙏

-2

why do you call this assessment search engine?? 🤔

-2

cuz it works the same way as the search engine. Nvm!just a point ,i’m a beginner BTW

-2

-2

def search(word, text): if word.lower() in text.lower(): print("word found") else: print("not found")

-3

Please help me to find out the solution of this project

-3

text = input() word = input() def search(word,text): if word in text: print("Word found") else: print("Word not found") search (word,text) You have the input(word and text).Make a condition for "search" and then implement the if/else contitions. Don't forget to close the "def" condition

-3

Maybe you did...but for this particular problem my code is the solution