Re: [Tutor] Breaking out of loop...

2009-11-20 Thread Albert-Jan Roskam
.randint(0, 10**4) if is_valid_date():     do_something() Cheers!! Albert-Jan ~~ In the face of ambiguity, refuse the temptation to guess. ~~~~~~ --- On Fri, 11/20/09, Ken G. wrote: From: Ken G. Subject: [Tutor] Breaking out of lo

Re: [Tutor] Breaking out of loop...

2009-11-20 Thread Ken G.
Alan Gauld wrote: "Ken G." wrote I am trying to break out of a loop posted below. When asked for monthdate, it should break out if I entered the number zero and it does not. GRRR. Been working on this for almost an hour. monthdate = 999 while monthdate <> 0: You are comparing

Re: [Tutor] Breaking out of loop...

2009-11-20 Thread Alan Gauld
"Ken G." wrote I am trying to break out of a loop posted below. When asked for monthdate, it should break out if I entered the number zero and it does not. GRRR. Been working on this for almost an hour. monthdate = 999 while monthdate <> 0: You are comparing monthdate with a num

[Tutor] Breaking out of loop...

2009-11-20 Thread Ken G.
I am trying to break out of a loop posted below. When asked for monthdate, it should break out if I entered the number zero and it does not. GRRR. Been working on this for almost an hour. monthdate = 999 while monthdate <> 0: monthdate = raw_input('Enter the month and date in t