On Wed, Aug 27, 2008 at 2:12 PM, Alex Garbino <agarbino at gmail.com> wrote: > for x in blast_record.alignments: > print alignment.title > > Traceback (most recent call last): > File "<input>", line 2, in <module> > NameError: name 'alignment' is not defined You should do: print x.title Instead of: print alignment.title