Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

myPYmenu

ans=True
while ans:
    print ("""
    1.Add a Student
    2.Delete a Student
    3.Look Up Student Record
    4.Exit/Quit
    """)
    ans=raw_input("What would you like to do? ") 
    if ans=="1": 
      print("
 Student Added") 
    elif ans=="2":
      print("
 Student Deleted") 
    elif ans=="3":
      print("
 Student Record Found") 
    elif ans=="4":
      print("
 Goodbye") 
    elif ans !="":
      print("
 Not Valid Choice Try again")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #myPYmenu
ADD COMMENT
Topic
Name
2+8 =