def get_choice(prompt: str) -> bool:
    """Get a yes/no choice from the user."""
    while True:
        choice = input(f"{prompt} [Y,N] ").upper()
        if choice == "Y":
            return True
        if choice == "N":
            return False
        print("Invalid input.")