def _choice_input(self, question, choices):
        print(question)
        for i, choice in enumerate(choices):
            print(" %s) %s" % (i + 1, choice))
        result = input("Select an option: ")
        while True:
            try:
                value = int(result)
                if 0 < value <= len(choices):
                    return value
            except __HOLE__:
                pass
            result = input("Please select a valid option: ")
dataset/ETHPy150Open django/django/django/db/migrations/questioner.py/InteractiveMigrationQuestioner._choice_input