November 13th, 2012, 10:01 AM
print(('No','Yes')[goal in text_to_be_searched])
You can choose how you populate the goal and the text_to_be_searched strings. source is a file name.
>>> with open(source,'r') as pf:
... text_to_be_searched = pf.read()
>>> import sys
>>> goal = sys.stdin.read()[:-1]
>>> print(('No','Yes')[goal in text_to_be_searched])
[/code] are essential for python code!