Emile,

  I modified the code to this:
for line in xml:
    ID = line.split()[1]
    rslt = "%s,%s"% (line,PIDS[ID])
print rslt

and ended up with this error:
Traceback (most recent call last):
  File "/Users/ara/Desktop/biopy_programs/merge2.py", line 16, in <module>
    rslt = "%s,%s"% (line,PIDS[ID])
KeyError: 'sp.'

Ara




-- 
Quis hic locus, quae regio, quae mundi plaga. Ubi sum. Sub ortu solis an sub
cardine glacialis ursae.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to