Check if the value is in the list?

examples/lists/in.py
from __future__ import print_function

words = ['abc', 'def', 'qqrq', 'hello']
if 'abc' in words:
    print('found abc')

if 'a' in words:
    print('found a')
else:
    print('NOT found a')

if 'x' in words:
    print('found x')
else:
    print('NOT found x')

# found abc
# NOT found a
# NOT found x
found a
NOT found x