Check if a substring is in the string?

examples/strings/in.py
from __future__ import print_function

txt = 'hello world'
if 'wo' in txt:
    print('found wo')

if 'x' in txt:
    print('found x')
else:
    print('NOT found x')
examples/strings/in.out
found wo
NOT found x