On Fri, 07 May 2010 18:58:59 +0530 wrote
>mannu jha wrote:
> On Thu, 06 May 2010 18:54:59 +0530 wrote
>
>> mannu jha wrote:
>>
>
>
>> I tried with this:
>>
>
>
>
>
>> for line in open('1.txt'):
>>
>
>
>> columns = line.split()
>>
>
>
>> print column
Dave Angel wrote:
mannu jha
wrote:
I tried with this:
for line in open('1.txt'):
columns = line.split()
print columns[0], columns[1]
if not line: continue
but it is showing error:
nmru...@caf:~> python split.py
24 ALA
Traceback (most recent call last):
File "split.py",
I tried with this:
for line in open('1.txt'):
columns = line.split()
print columns[0], columns[1]
if not line: continue
but it is showing error:
nmru...@caf:~> python split.py
24 ALA
Traceback (most recent call last):
File "split.py", line 3, in
print columns[0], col