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

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Sat Sep 17 21:52:26 CEST 2005

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