def entry_point(): users_input = input('Type the command of the list {0}: \n'.format(debug.load_commands())) if users_input == debug.load_commands()[0]: print('Ok, you have chosen to {0} some data'.format(debug.load_commands()[0])) add_data() elif users_input == debug.load_commands()[1]: print('Ok, you have chosen to {0} some data'.format(debug.load_commands()[1])) debug.load_data() elif users_input == debug.load_commands()[2]: print('Ok, you have chosen to {0} from the program'.format(debug.load_commands()[2])) sys.exit() elif users_input == debug.load_commands()[3]: print('Ok, you have chosen to {0} from the program'.format(debug.load_commands()[3])) search_smthn = input('Type brand or HP of a car you wanna search in the Database: ') search_data(search_smthn) elif users_input == debug.load_commands()[4]: print('Ok, you have chosen to {0} from the program'.format(debug.load_commands()[4])) edit_smthn = input('type the item you wanna to edit: ') edit_data(edit_smthn) elif users_input == debug.load_commands()[5]: print('Ok, you have chosen to {0} from the program'.format(debug.load_commands()[5])) delete_smthn = input('type the item you wanna to delete: ') delete_data(delete_smthn) else: print('U have to choose one of the command from the list') entry_point()