Re: [Tutor] Newbie to Python: enumerate XML tags (keys that will become headers) along with text (values) and write to CSV in one row (as opposed to "stacked" values with one header)

2015-06-26 Thread Steven D'Aprano
On Thu, Jun 25, 2015 at 02:42:16PM -0400, Saran Ahluwalia wrote: > My question can be found here: > > http://stackoverflow.com/questions/31058100/enumerate-column-headers-in-csv-that-belong-to-the-same-tag-key-in-python You might think you are saving time in not typing the question twice, but y

Re: [Tutor] Newbie to Python: enumerate XML tags (keys that will become headers) along with text (values) and write to CSV in one row (as opposed to "stacked" values with one header)

2015-06-25 Thread Mark Lawrence
On 25/06/2015 23:51, Alan Gauld wrote: On 25/06/15 19:42, Saran Ahluwalia wrote: My question can be found here: http://stackoverflow.com/questions/31058100/enumerate-column-headers-in-csv-that-belong-to-the-same-tag-key-in-python It would have been helpful to post the question here rather th

Re: [Tutor] Newbie to Python: enumerate XML tags (keys that will become headers) along with text (values) and write to CSV in one row (as opposed to "stacked" values with one header)

2015-06-25 Thread Alan Gauld
On 25/06/15 19:42, Saran Ahluwalia wrote: My question can be found here: http://stackoverflow.com/questions/31058100/enumerate-column-headers-in-csv-that-belong-to-the-same-tag-key-in-python It would have been helpful to post the question here rather than just a link. However, having read i

[Tutor] Newbie to Python: enumerate XML tags (keys that will become headers) along with text (values) and write to CSV in one row (as opposed to "stacked" values with one header)

2015-06-25 Thread Saran Ahluwalia
My question can be found here: http://stackoverflow.com/questions/31058100/enumerate-column-headers-in-csv-that-belong-to-the-same-tag-key-in-python Here is an additional sample sample of the XML that I am working with: 0 0 0 0

Re: [Tutor] Newbie to Python

2007-12-09 Thread Alan Gauld
Hi Fred, welcome to the list > I would like to provide the script the path and filename of a file. OK, Look at sys.argv for command line argument passing Look at raw_input() for interactive prompting > Then the script would create a series of required directories > then copy the contents of the

[Tutor] Newbie to Python

2007-12-08 Thread Fred P
Hey everyone, New to python, but not so scripting. Have some experience with C++, but more experience with LUA, CShell, and other types of scripting similar to those. I want to learn Python, and I have decided I would like my first project to be a collection program. I would like to provi