+ 2
Why this code is not working?
text = input("") word = input("") def search(text, word): if word in text: print('Word found') else: print('Word not found') print(search(text, word)) # this is the code of the last project in python for bigenners course. # why it is showing none after the result? The description of the projectš #Youāre working on a search engine. Watch your back Google! The given code takes a text and a word as input and passes them to a function called search(). The search() function should return "Word found" if the word is present in the text, or "Word not found", if itās not. Sample Input "This is awesome" "awesome" Sample Output Word found
4 Answers