findWord = 'document'.lower()
wordToFind = 'set is complete'.lower()
splitList = sampleDoc.split(findWord)
splitList.pop(0)
for position, phrase in enumerate(splitList):
    if wordToFind in phrase:
        print(('Document Number', str(position + 1), '-> true'))
else:
    print(('Document Number', str(position + 1), '-> false'))
python match target word