new_search = Search() #instance of search class search_choice = input( "What would you like to search by? ('m' = Major, 'g' = GPA, 'a' = Advisor) " ) if search_choice.lower() == "m": major = input("Enter the student's major: ") input_param = (major, ) #insert input into tuple new_search.searchByMajor(input_param) elif search_choice.lower() == "g": gpa = input("Enter the student's GPA: ") input_param = (gpa, ) #insert input into tuple new_search.searchByGpa(input_param) elif search_choice.lower() == "a": advisor = input("Enter the name of the student's advisor: ") input_param = (advisor, ) #insert input into tuple new_search.searchByAdvisor(input_param) else: print("Input invalid.") continuing = input( "Continue? (y/n) ") #check if user wants to continue if continuing == "n": break #update student elif choice == "u": choices.update() continuing = input("Continue? (y/n) ") if continuing == "n": break