Re: Formatting question.

2007-11-21 Thread mike5160
On Nov 21, 11:36 am, mike5160 <[EMAIL PROTECTED]> wrote: > On Nov 21, 1:22 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > > > > On Tue, 20 Nov 2007 15:11:38 -0800 (PST), mike5160 <[EMAIL PROTECTED]> > > declaimed the following in comp.lang.python: &

Re: Formatting question.

2007-11-21 Thread mike5160
On Nov 21, 1:22 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Tue, 20 Nov 2007 15:11:38 -0800 (PST), mike5160 <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > > > Hi all, > > > My input file looks like this : ( the data is s

Re: Fwd: Formatting question.

2007-11-21 Thread mike5160
writer.writerow([base % data]) > > infile.close() > outfile.close() > > The above lines works like your program, writing exactly what you asked. > Again, all lists are iterable, you don't need to iterate an integer > from 1 to len(list). (isn&

Formatting question.

2007-11-20 Thread mike5160
Hi all, My input file looks like this : ( the data is separated by tabs ) 11/26/2007 56.366 898.90 -10.086 23.11 1212.3 11/26/2007 52.25 897.6 -12.5 12.61.5 11/26/2007 52.25 897.6 -12.5 12.6133.5 The output I'm trying to get is as follows : ( Insert N