@property
    def selected_option(self):
        i = 0
        for category in self.options:
            for o in category.options:
                if i == self.selected_option_index:
                    return o
                else:
                    i += 1
Return the currently selected option.
dataset/ETHPy150Open jonathanslenders/ptpython/ptpython/python_input.py/PythonInput.selected_option