def select(choice_list):
    """ Ask the user to select an option
    choice_list: The list of options
    return the index of the choice
    """
    print('Please select an option :')
    for index, choice in choice_list.items():
        print('\t{}) {}'.format(index, choice))
    choice = int(input('-> '))
    while not choice in choice_list:
        print('Invalid value')
        choice = int(input('-> '))
    return choice
