def update_agent(db, id): print("Input required values and press enter...") new_a = Agent() new_a.salary = check_input(input_num, "Salary: ") db.update_agent(new_a, id)
def input_agent(db): print("Input required values and press enter...") a = Agent() a.fullname = input("Fullname: ") a.salary = check_input(input_num, "Salary: ") db.new_agent(a)