> Another way is: > > zip(*map(open, myfiles)) >> Then your loop looks like: >> >> for i in zip([ cleanedup(filename) for filename in myfiles ])
Thanks, Steven! I knew there was a way to do this with just a few lines. I will read up some more on list expansion and the map built-in. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor