Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

word search engine in python

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 :: Algorithms and Data Structures in Python (INTERVIEW Q&A) 
Python :: how to move mouse by detected face and eye using opencv 
Python :: vortex identification 
Python :: Use xarray to open a ncdf file 
Python :: catkin_make ignore pkg 
Python :: import variables fron another file 
Python :: ouvrir fichier txt python et le lire 
Python :: linux show output 
Python :: How to find text of h2 tag in python requests-html 
Python :: Broadcasting with NumPy Arrays Example 
Python :: pathlib home 
Python :: how to change the color of console output in python to green 
Python :: make python standalone 
Python :: Python NumPy ascontiguousarray Function Syntax 
Python :: Python NumPy column_stack Function Example with 1d array 
Python :: TemplateDoesNotExist at / 
Python :: (ax=self.canv.axes ,style="ro--") 
Python :: __le__ 
Python :: using Canvas with tkinger 
Python :: NumPy bitwise_or Code When inputs are numbers 
Python :: tikzplotlib set figure 
Python :: downsample audio 
Python :: python truncade number 
Python :: How to Preprocess for categorical data 
Python :: python selectionsort 
Python :: deque popleft in python 
Python :: cashier program with class python 
Python :: How to solve import errors while trying to deploy Flask using WSGI on Apache2 
Python :: EDA describe missing and zero values 
Python :: ring Delete Item From List 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =