Re: Export data from python to a txt file

2013-03-29 Thread Peter Otten
Ana Dionísio wrote: > I have this lists a=[1,3,5,6,10], b=[a,t,q,r,s] and I need to export it to > a txt file and I can't use csv. What do you mean by "can't use csv"? - You cannot get it to work with the csv module - You are not allowed to use csv by your instructor - Something else. > And I w

Re: Export data from python to a txt file

2013-03-29 Thread Vincent Vande Vyvre
Le 29/03/13 18:33, Ana Dionísio a écrit : > Hello!!! > > I have this lists a=[1,3,5,6,10], b=[a,t,q,r,s] and I need to export it to a > txt file and I can't use csv. > > And I want the next format: > > a 1 3 5 6 10 > b a t q r s > > I already have this code: > > "f = open("test.txt", 'w') > f.wri

Re: Export data from python to a txt file

2013-03-29 Thread rusi
On Mar 29, 10:33 pm, Ana Dionísio wrote: > Hello!!! > > I have this lists a=[1,3,5,6,10], b=[a,t,q,r,s] and I need to export it to a > txt file and I can't use csv. > > And I want the next format: > > a 1 3 5 6 10 > b a t q r s > > I already have this code: > > "f = open("test.txt", 'w') >  f.wri

Re: Export data from python to a txt file

2013-03-29 Thread Mark Lawrence
On 29/03/2013 17:33, Ana Dionísio wrote: Hello!!! I have this lists a=[1,3,5,6,10], b=[a,t,q,r,s] and I need to export it to a txt file and I can't use csv. And I want the next format: a 1 3 5 6 10 b a t q r s I already have this code: "f = open("test.txt", 'w') f.write("a") You'll have

Re: Export data from python to a txt file

2013-03-29 Thread Jason Swails
On Fri, Mar 29, 2013 at 1:33 PM, Ana Dionísio wrote: > Hello!!! > > I have this lists a=[1,3,5,6,10], b=[a,t,q,r,s] and I need to export it to > a txt file and I can't use csv. > It would help if you showed exactly what you had in your program or in the Python interpreter. For instance a = [1,

Export data from python to a txt file

2013-03-29 Thread Ana Dionísio
Hello!!! I have this lists a=[1,3,5,6,10], b=[a,t,q,r,s] and I need to export it to a txt file and I can't use csv. And I want the next format: a 1 3 5 6 10 b a t q r s I already have this code: "f = open("test.txt", 'w') f.write("a") f.write("\n") f.write("b") f.write("\n") for i in xr