<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Well this is the little program that I have created
it is my first one and it works just</FONT></DIV>
<DIV><FONT face=Arial size=2>fine from what I have tested. Only problem I have
with it is that, lets say you enter</FONT></DIV>
<DIV><FONT face=Arial size=2>1 at the prompt it will load the add.py modual.
however when it comes to the end</FONT></DIV>
<DIV><FONT face=Arial size=2>of the modual it terminats. How would I go about
making it so that it will return to </FONT></DIV>
<DIV><FONT face=Arial size=2>the menu and ask for another choice.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Kevin</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>print """<BR>0 Exit<BR>1 Add<BR>2
Subtract</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>"""<BR>number = raw_input("Enter a number:
")</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>while
1:<BR>
try:<BR>
number =
int(number)<BR>
break<BR> except
ValueError:<BR>
print "That is not an
option"<BR>
number = raw_input("Enter a number: ")<BR>if int(number) ==
1:<BR> import add<BR>if int(number) ==
2:<BR> import
subtract<BR></FONT></DIV></BODY></HTML>