def load_module(option): if option == 1: crm_controller.menu() elif option == 2: sales_controller.menu() elif option == 3: hr_controller.menu() elif option == 0: return 0 else: raise KeyError()
def load_module(option): if option == '1': crm_controller.menu() elif option == '2': hr_controller.menu() elif option == '3': sales_controller.menu() elif option == '4': return 4 else: raise KeyError()
def load_module(option): if option == '1': os.system('clear') crm_controller.menu() elif option == '2': os.system('clear') hr_controller.menu() elif option == '3': os.system('clear') sales_controller.menu() elif option == '4': return 4 else: raise KeyError()