[Tutor] Lists within lists return

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Mon, 10 Dec 2001 18:51:11 -0800 (PST)


On Tue, 11 Dec 2001, Eve Kotyk wrote:

> 
> > >     #now lets run the questions
> > >     run_test(get_questions())
> > 
> > is indented too far.  You probably want the definition of run_test() to be
> > outside check_question().
> 
> Thanks Danny.  I thought this might be the case but when I do that I get
> the following error:
>  python test.py
> Traceback (innermost last):
>   File "test.py", line 50, in ?
>     run_test(get_questions())
> NameError: run_test       

Without seeing your changes, I'll have to make a wildly inaccurate guess.  
Did you do this to just the last line?  You also need to move the whole
run_test() definition "outside" of check_question().

I don't like wildly guessing though, since its often very ineffective.  
Instead, can you show us what your program looks like, now that you've
applied your changes?