Python part 35 Search Engine chalenge code challeng or project in sololearn

preview_player
Показать описание
Python part 35 Search Engine chalenge code challeng or project in sololearn

The code in the following link:

Search Engine

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.

#python
#بايثون
#مدارس_المتفوقين
Рекомендации по теме
Комментарии
Автор

try this, simpler;

text = (input())
word = (input())
def search():
if word in text:
print("Word found")
if not word in text:
print("Word not found")


search()

hariharanelangovan