error but still only makes one pass.
Thanks
Message: 1
Date: Sun, 20 Nov 2005 22:26:10 -0500
From: Kent Johnson <[EMAIL PROTECTED]>
Subject: Re: [Tutor] Website monitoring program.
Cc: tutor@python.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; f
Below is a program I found at
http://starship.python.net/crew/neale/ (though it does
not seem to be there anymore.) It uses a seperate
file for the URLs
--- Adisegna <[EMAIL PROTECTED]> wrote:
> My question is how to use a loop to go through a
> tuple of URLs. Please feel
> free to suggest an ea
Adisegna wrote:
> How do I get the counting loop to come back around? It makes one pass
> fine. How do I get it to come back up and go through again?
You have to indent the statement 'count += 1' so it is part of the loop. But
you misunderstand the for loop - the count variable is not needed at
How do I get the counting loop to come
back around? It makes one pass fine. How do I get it to come back up
and go through again?
Thanks
---
import urllib, smtplib
urls = ("http://website0.net/imalive.asp",
"http://website1.net/imal
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Kent Johnson
Sent: Monday, 21 November 2005 10:25 a.m.
Cc: tutor@python.org
Subject: Re: [Tutor] Website monitoring program.
Adisegna wrote:
>
> I guess I should keep the same subject line (above) from
Adisegna wrote:
>
> I guess I should keep the same subject line (above) from now on since my
> last few posts (urllib, smtplib) are about the same program.
My preference is to start a new subject for each new question.
>
> My question is how to use a loop to go through a tuple of URLs. Please
I guess I should keep the same subject line (above)
from now on since my last few posts (urllib, smtplib) are about the
same program.
My question is how to use a loop to go through a tuple of URLs. Please feel free to suggest an easier way to do the same thing.
Here is my rudimentary program so