def select_item_from_menu(options):
    """
    Displays a menu for the provided list of options, then repeated prompts the user
    for an option until a valid one is selected, then returns the selected option.
    """

    # Setup menu
    valid_index_range = range(0, len(options))
    selected_index = -1
    while selected_index not in valid_index_range:
        try:
            # Print menu
            for index, team in enumerate(options):
                team_num = index + 1

                print(f"{team_num}) {team}")

            # Prompt user for selection
            selected_index = int(input("\nPlease select an option: ")) - 1
        except ValueError:
            print(f"Invalid option!\n")
        else:
            if selected_index not in valid_index_range:
                print("Option not in range!\n")

    selected_item = options[selected_index]
    return selected_item