Reading data from 2 different files and writing to a single file

Chris Angelico rosuav at
Wed Jan 30 11:47:18 CET 2013

On Wed, Jan 30, 2013 at 9:43 PM, inshu chauhan <insideshoes at> wrote:
> I actually dont want nested loops but cant find another way to achieve what
> I want, But for these files I am sure that they have equal lengths, thats
> why I am taking the risk of using nested loops.. Can you suggest any
> different way to go around this problem , which could be flexible and
> non-errorneous ?

Easy. Just trim off the header row(s), if you know how many to expect,
and then use zip() as Dave mentioned earlier.


More information about the Python-list mailing list