16 AnswersNew Answer
16 AnswersNew Answer
Hi! Please show us your code and task, it will improve and speed up the help. how do we know where you're stuck?
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. 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?
if u need help, inbox me, but provide your trial first. wish u great continuation 🙏
Boeh, se agrandó.
no problem bro. But this is how a search engine with python looks like https://towardsdatascience.com/how-to-build-a-search-engine-9f8ffa405eac
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)
def search(): a1 = input() b1 = input() if b1 in a1: print ("Word found") else: print ("Word not found") search()
Thanks bro, i can’t express how grateful I am to you🙏
why do you call this assessment search engine?? 🤔
cuz it works the same way as the search engine. Nvm!just a point ,i’m a beginner BTW
def search(word, text): if word.lower() in text.lower(): print("word found") else: print("not found")
Please help me to find out the solution of this project
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
Maybe you did...but for this particular problem my code is the solution
SoloLearn Inc.4 Embarcadero Center, Suite 1455
Send us a message