The find method finds a substring within a larger string. : find « String « Python Tutorial






# It returns the leftmost index where the substring is found. If it is not found, 1 is returned: 

print 'With a moo-moo here, and a moo-moo there'.find('moo')
title = "A B C D"

print title.find('A')
print title.find('B')
print title.find('D')
print title.find('E')








5.9.find
5.9.1.The find method finds a substring within a larger string.
5.9.2.find from an index
5.9.3.Searching Strings for Substrings