Re: write whitespace/tab to a text file

2007-10-19 Thread Grant Edwards
On 2007-10-19, marc wyburn <[EMAIL PROTECTED]> wrote: >> I would l like to write some data to a text file. I want to write the >> data with whitespace or tabs in between so that I create tabular >> columns like in a spreadsheet. How can I do this in python. >> (btw, I'm new to python) >> >> names

Re: write whitespace/tab to a text file

2007-10-19 Thread marc wyburn
On Oct 19, 3:33 pm, dirkheld <[EMAIL PROTECTED]> wrote: > Hi, > > I would l like to write some data to a text file. I want to write the > data with whitespace or tabs in between so that I create tabular > columns like in a spreadsheet. How can I do this in python. > (btw, I'm new to python) > > nam

write whitespace/tab to a text file

2007-10-19 Thread dirkheld
Hi, I would l like to write some data to a text file. I want to write the data with whitespace or tabs in between so that I create tabular columns like in a spreadsheet. How can I do this in python. (btw, I'm new to python) names = ['John','Steve','asimov','fred','jim'] ## output I would like in

Re: write whitespace/tab to a text file

2007-10-19 Thread Bjoern Schliessmann
dirkheld wrote: > f=open('/User/home/Documents/programming/python/test.txt','w') > for x in range(len(names)): > f.write(tags[x]) > f.close() Definitely consider the Python tutorial. Also, please provide working code examples. I don't think yours will work ;) names = ['John','St

Re: write whitespace/tab to a text file

2007-10-19 Thread Sébastien Weber
Le Fri, 19 Oct 2007 07:33:29 -0700, dirkheld a écrit : > Hi, > > I would l like to write some data to a text file. I want to write the > data with whitespace or tabs in between so that I create tabular columns > like in a spreadsheet. How can I do this in python. (btw, I'm new to > python) > > n

Re: write whitespace/tab to a text file

2007-10-19 Thread Tim Chase
> I would l like to write some data to a text file. I want to write the > data with whitespace or tabs in between so that I create tabular > columns like in a spreadsheet. How can I do this in python. > (btw, I'm new to python) > > names = ['John','Steve','asimov','fred','jim'] > ## output I would

write whitespace/tab to a text file

2007-10-19 Thread dirkheld
Hi, I would l like to write some data to a text file. I want to write the data with whitespace or tabs in between so that I create tabular columns like in a spreadsheet. How can I do this in python. (btw, I'm new to python) names = ['John','Steve','asimov','fred','jim'] ## output I would like in

write whitespace/tab to a text file

2007-10-19 Thread dirkheld
Hi, I would l like to write some data to a text file. I want to write the data with whitespace or tabs in between so that I create tabular columns like in a spreadsheet. How can I do this in python. (btw, I'm new to python) names = ['John','Steve','asimov','fred','jim'] ## output I would like in