[Tutor] Why won't it enter the quiz?

Nathan Pinno falcon3166 at hotmail.com
Sat Sep 17 22:06:06 CEST 2005


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" <dyoo at hkn.eecs.berkeley.edu>
To: "Nathan Pinno" <falcon3166 at hotmail.com>
Cc: <Tutor at 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
>
>
> 


More information about the Tutor mailing list