Hi All,
I am writing a little program that i should be able to get working i think!
basically i have this file full of content and i want to search it for a list of words. And add to a score variable each time i find a word
scorelist = [ "<tr>" , "</tr>" ]
for i in scorelist:
for line in f:
if i in line:
print i
score = score + 1
i have <tr> and </tr> in the file five times each yet score is only ever five.
It never moves up the list to look for "</tr>"
What is it that im doing wrong??
sorry but im new to python!
Thanks.. from a stuck irishman!