I can see that I was wrong. I was tired, and I don't always think too smart. It should be cq <= q. :) Nathan Pinno ----- Original Message ----- From: "Danny Yoo" <[EMAIL PROTECTED]> To: "Nathan Pinno" <[EMAIL PROTECTED]> Cc: <Tutor@python.org> Sent: Saturday, September 17, 2005 1:52 PM Subject: Re: [Tutor] Why won't it enter the quiz?
> > > On Fri, 16 Sep 2005, Nathan Pinno wrote: > >> cq is for "current question" and q is for "question" >> therefore cq >= q should be correct most of the time > > Are you sure? > > Try specific values of current_question and question: don't just assume > that it'll work: try running through the numbers. > > Remember, your initial conditions right before hitting the while loop are: > > question = random.choice(range(15,31)) > current_question = 1 > > > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor