Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python keyword search engine

#text search engine
def search(text, word):
    if word in text:
        result = "Word found"
        return result 
    else:
        result = "Word not found"
        return result

text = input()
word = input()

print(search(text, word))
Comment

PREVIOUS NEXT
Code Example
Python :: palindrome program in python 
Python :: How to join or combine multiple csv files with concatenate and export dataframe to csv format 
Python :: python denest list of anything 
Python :: An error occurred while connecting: 10049: The requested address is not valid in its context.. scrapy splash 
Python :: valueerror python list 
Python :: Membership in a list 
Python :: ssd 1306 esp32 python 
Python :: comparison operators in python 
Python :: awesome python 
Python :: Set Date In Python 
Python :: While Loop Python Range Staying Constant Despite Shrinking List 
Python :: datetime.timedelta 
Python :: needle in haystack 
Python :: flask in colab ngrok error 
Python :: Python - Common Conditional Statements 
Python :: Using iterable unpacking operator * with extend 
Python :: Using CGI with Python and HTML forms 
Python :: how to find the length of a list in python 
Python :: 90/360 
Python :: python array_combine 
Python :: pygame kreis definition 
Python :: if len(i1.getbands()) == 1 
Python :: zoom in geopandas polot 
Python :: main() invalid syntax 
Python :: how to check if an array is empty in python 
Python :: python zpl 
Python :: how print python 
Python :: tornado cookies authorization 
Python :: winwin 
Python :: function for permutation sampling and test statistic from a specified operation 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =