Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find a word in list python

keyword_list = ['motorcycle', 'bike', 'cycle', 'dirtbike']

if any(word in all_text for word in keyword_list):
    print 'found one of em'
Source by www.askpython.com #
 
PREVIOUS NEXT
Tagged: #find #word #list #python
ADD COMMENT
Topic
Name
3+4 =