Dear Friends,

Thanks for your replies for my previous mail.

I have two files as follows.

file 1         file2
200           1         3.55
210           2         4.55
242           3         1.22
248           4         3.10
256            5        1.11

Now i have to replace 1,2,3,4,5 in *file 2* with 200,210,242,248,256 in *
file1*. Simply *replacing position 1 in file2 with values in file1*. Can i
do it with zip function, if yes how to do it. Here both files contain same
number of lines.

Thanks,
Bala
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to