<font color="#330033"><font><font face="georgia,serif">Thanks all for your immediate responses :)<br></font></font></font><br><div class="gmail_quote">On Thu, Oct 11, 2012 at 6:20 PM, Joel Goldstick <span dir="ltr"><<a href="mailto:joel.goldstick@gmail.com" target="_blank">joel.goldstick@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Oct 11, 2012 at 8:30 AM, eryksun <<a href="mailto:eryksun@gmail.com">eryksun@gmail.com</a>> wrote:<br>


> On Thu, Oct 11, 2012 at 7:13 AM, Sunil Tech <<a href="mailto:sunil.techspk@gmail.com">sunil.techspk@gmail.com</a>> wrote:<br>
>><br>
>> text1 contains<br>
>> This is from Text1 --- 1st line<br>
>> ....<br>
>><br>
>> text2 contains<br>
>> This is from Text2 --- 1st line<br>
>> ....<br>
>><br>
>> i want result in text3 like<br>
>> This is from Text1 --- 1st line<br>
>> This is from Text2 --- 1st line<br>
>> ....<br>
<br>
</div>zip gets you tuples.  map can operate on those tuples<br>
<br>
I just tried this:<br>
>>> x = [1,2,3]<br>
>>> y = [4,5,6]<br>
>>> def print_2(t):<br>
...   print t[0], t[1]<br>
...<br>
>>> z = zip(x,y)<br>
>>> z<br>
[(1, 4), (2, 5), (3, 6)]<br>
<br>
>>> r = map(print_2, z)<br>
1 4<br>
2 5<br>
3 6<br>
>>><br>
<br>
You need to write a function that writes the tuple to a file.  It will<br>
look something like my print_2() function<br>
<span class="HOEnZb"><font color="#888888">--<br>
Joel Goldstick<br>
</font></span></blockquote></div><br>