> while understand_problem is False: > study("textbook") > > complete("homework") > > if want_help is True: > study("http://www.catb.org/~esr/faqs/smart-questions.html")
just a note but "if" and "while" evaluate variables as True or False without a verbose test. e.g.: while not understand_problem: study("textbook") complete("homework") if want_help: study("http://www.catb.org/~esr/faqs/smart-questions.html") Just fyi... -- Josh Dukes MicroVu IT Department -- http://mail.python.org/mailman/listinfo/python-list