Re: [Tutor] XML to text

2008-10-24 Thread Dinesh B Vadhia
Yes, that's exactly what I was looking for. Brilliant! From: Kent Johnson Sent: Friday, October 24, 2008 10:59 AM To: Dinesh B Vadhia Cc: tutor@python.org Subject: Re: [Tutor] XML to text On Fri, Oct 24, 2008 at 11:54 AM, Dinesh B Vadhia <[EMAIL PROTECTED]> wrote: > I have a large number

Re: [Tutor] Python HELP

2008-10-24 Thread Kent Johnson
On Fri, Oct 24, 2008 at 1:18 PM, A .K Hachem <[EMAIL PROTECTED]> wrote: > hey there, if anyone can help me with an assignment im stuck in for a fee i > will be grateful We will help for free if you show us what you have done and ask specific questions. We won't do your homework for you. Kent

Re: [Tutor] XML to text

2008-10-24 Thread Kent Johnson
On Fri, Oct 24, 2008 at 11:54 AM, Dinesh B Vadhia <[EMAIL PROTECTED]> wrote: > I have a large number of xml files that I want to convert into text format. > What is the best and easiest way to do this? Thanks! If by "convert into text format" you mean, strip all the xml markup and leave just the

[Tutor] Python HELP

2008-10-24 Thread A .K Hachem
hey there, if anyone can help me with an assignment im stuck in for a fee i will be grateful *** Regards. A K. Hachem EMAILING FOR THE GREATER GOOD Join me ___ Tutor maillist - Tutor@python.org http://mail.p

Re: [Tutor] XML to text

2008-10-24 Thread Thomas Walch
This might be helpful: http://www.boddie.org.uk/python/XML_intro.html Have fun! Thomas Dinesh B Vadhia schrieb: I have a large number of xml files that I want to convert into text format. What is the best and easiest way to do this? Thanks! Dinesh ---

Re: [Tutor] please help with simple python CGI script

2008-10-24 Thread aivars
Thanks very much, Kent, So it seems that directory /cgi-bin should be a subdirectory to that directory from which the web server was started/is running. That worked and Deitel's script - getting time displayed finally worked. still banging mu head with Wesley Chun's simple example - #!C:\python2

[Tutor] XML to text

2008-10-24 Thread Dinesh B Vadhia
I have a large number of xml files that I want to convert into text format. What is the best and easiest way to do this? Thanks! Dinesh ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] please help with simple python CGI script

2008-10-24 Thread Kent Johnson
On Fri, Oct 24, 2008 at 10:25 AM, aivars <[EMAIL PROTECTED]> wrote: > Hello, > > I am learning python. > > I start the python CGI server like this: > > python -m CGIHTTPServer (this syntax I saw in Wesley Chun's Core > Python Programming chapter 20.5) > > The server starts in command prompt on wind

[Tutor] please help with simple python CGI script

2008-10-24 Thread aivars
Hello, I am learning python. I start the python CGI server like this: python -m CGIHTTPServer (this syntax I saw in Wesley Chun's Core Python Programming chapter 20.5) The server starts in command prompt on windows XP by answering: Serving HTTP on 0.0.0.0 port 8000... Next I want to run this s

Re: [Tutor] Need help w/ a for loop

2008-10-24 Thread Kent Johnson
On Fri, Oct 24, 2008 at 6:51 AM, W W <[EMAIL PROTECTED]> wrote: > for i in range(1, n+1): > x = x + (m * (i % 2)) * (4.0/(i*2)) This will omit every other term (when i%2 ==0) and it divides by the even numbers, not odd ones. Kent ___ Tutor maillist

Re: [Tutor] Need help w/ a for loop

2008-10-24 Thread W W
On Thu, Oct 23, 2008 at 10:29 PM, Monte Milanuk <[EMAIL PROTECTED]> wrote: > Hello again, and thanks to all of you who extended your help! > Maybe I'm not clever enough, but I didn't see how either example > could be used for doing the addition/subtraction determination. Or rather, > I found a di

Re: [Tutor] Need help w/ a for loop

2008-10-24 Thread Monte Milanuk
Hello again, and thanks to all of you who extended your help! Wayne, Thanks for your examples. They did end up helping in with finding a pattern to do the odd numbers with. Maybe I'm not clever enough, but I didn't see how either example could be used for doing the addition/subtraction determ