Re: Fwd: Formatting question.

2007-11-21 Thread mike5160
On Nov 20, 9:13 pm, "Sergio Correia" <[EMAIL PROTECTED]> wrote: > Hey Mike, > Welcome to Python! > > About your first issue, just change the line > outfile.write( "'%s'," % (LoL[x][y])) > With > outfile.write( "'%s'," % (LoL[x][y][:-1])) > > Why? Because when you do the line.split, you are includin

Fwd: Formatting question.

2007-11-20 Thread Sergio Correia
Hey Mike, Welcome to Python! About your first issue, just change the line outfile.write( "'%s'," % (LoL[x][y])) With outfile.write( "'%s'," % (LoL[x][y][:-1])) Why? Because when you do the line.split, you are including the '\n' at the end, so a new line is created. Now, what you are doing is not