[Tutor] Dynamically assign variable names to tuple objects

Emile van Sebille emile at fenx.com
Tue Mar 1 20:14:48 CET 2011

On 3/1/2011 10:59 AM Sean Carolan said...

> Take an arbitrary number of text files. Assume that each text file has
> the exact same number of lines.  Concatenate each line of each file
> with the corresponding lines of the other files and output the data.
> So in other words, the first line of output will be
> file1_line1+file2_line1+file3_line1, etc.

Hint:  Look at zip.


More information about the Tutor mailing list