I have decided to merge the 2 scripts. First I should have a menu asking me if I want to compute areas or volumes. Then depending on the choice it should display the relevant menu. My first menu comes on but if I select "b" or "c" the script does not run. The error message points out that "print_options()" or "print_options_2()" are not defined. Could somebody point me into the right direction, thanks.
The problem is that you are calling task_options() before print_options() and print_options_2() are defined.
A good practice is to put all your function definitions first in the file, then put the main code that calls them at the end. So you would have
def task_options():
...
def print_options(): ...
def print_options_2(): ...
Then start the main program by calling task_options()
Kent
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
