from typing import List


def select_prompt(choices: List[str]):
    """Prompts user to select from a list of choices"""
    print("Please select from", choices)
    user_input = input("> ")
    if user_input.isdigit():
        user_input = int(user_input)
    if user_input in choices:
        return user_input
    print("Invalid input.")
    return select_prompt(choices)