Okay, what it your whole program try and do? I'm not quite sure with the information given.
Paul Thompson
Veteran Poster
1,119 posts since May 2008
Reputation Points: 264
Solved Threads: 183
Enumerate is one way to do it.
for ctr, word in enumerate(words):
word = clearup(word)
if word not in dictionary:
print "%s : line %d" % (word, ctr)
woooee
Nearly a Posting Maven
2,454 posts since Dec 2006
Reputation Points: 777
Solved Threads: 714
Mark then the thread solved
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392