s right before the line where
the program failed and print out the data that seems to be causing
the failure.<br />
<br />
Now this approach may generate a lot of lines of output but at 
least you will immediately have some clue as to the 
problem at hand. So we add a print of the variable
<tt>words</tt> right before line five. We even 
add a prefix "Debug:" to the line so we can keep
our regular output separate from our debug output.
</font><pre><font size="4" color="blue">
for line in fhand:
    words = l