how to select column

mannu jha mannu_0523 at rediffmail.com
Mon Apr 26 10:50:51 EDT 2010


Dear all,

I am new in python, can anyone help me that how can I select two column out of 6 column from a file.
For example if I have file like:

a1 a2 a3 a4 a5 a6
b1 b2 b3 b4 b5 b6
c1 c2 c3 c4 c5 c6
d1 d2 d3 d4 d5 d6 

and I want output like:

a1 a4
b1 b4
c1 c4
d1 d4

then how to do

Thanks 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100426/34400a8d/attachment.html>


More information about the Python-list mailing list