How to find sentences in text file that starts and ends with particular words for example sentences that starts with 'The' and ends with 'u'.I have tried
print 'The lines that starts with The and Ends with u'
for line in f:
for j in line.split('.'):
if j=='T' and j=='h' and j=='e' and j==' ' and j[-1]=='u':
if __name__ == '__main__':main()