</font><pre><font size="4" color="blue">
fhand = open('mbox-short.txt')
for line in fhand:
    words = line.split()
    if words[0] != 'From' : continue
    print words[2]
</font></pre><font color="black">This looks much simpler and we don't even need to do the 
<tt>rstrip</tt> to remove the newline at the end of the file.
But is it better?
</font><pre><font size="4" color="blue">
python search8.py 
Sat
Traceback (most recent call last):
  File "search8.py", line 5, in &lt;module&gt;
    if words[0] != 'Fro