[Tutor] help

james middendorff james2dope@yahoo.com
Wed, 21 Aug 2002 10:09:19 -0700 (PDT)


I am learning Python and using a (even though I dont
know vb)Visual Basic books examples to practice
things, and the example I am doing right now, looks
like this so far

#this is a little program to print out names of an
#auto dealers departments
import sys
def view_options():
    print "Options"
    print "'1' Auto Sales"
    print "'2' Service Center"
    print "'3' Detail Shop"
    print "'4' Employment Opportunities"
    print "'5' To Exit"
view_options()
    
Selection = raw_input("Select a number")
while Selection != "5":
    if Selection == '1':
        print "Family Wagon, Immaculate condition
$12,995"
        view_options()
        Selection = raw_input("Select a number")

    elif Selection == "2":
        print "Lube, oil, filter $25.99"
        view_options()
        Selection = raw_input("Select a number")

    elif Selection == "3":
        print "Complete Detail $79.99 for most cars"
        view_options()
        Selection = raw_input("Select a number")

    elif Selection == "4":
        print "Sales position contact Mr. Mann"
        view_options()
        Selection = raw_input("Select a number")
print "Goodbye"
sys.exit()

is there any way I could add things, and make them
stay for the next time the program is run?

=====
"I would kill everyone in this room
    for a drop of sweet beer."
     ----Homer Simpson----

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com