def __create_prompt(prompt_text, task_choices):
    """
    Creates the interactive prompt string, and returns the input passed in from the end user
    Will fail if the user passes in invalid input over 5 times
    """
    fail_count = 5
    full_text = prompt_text + "[" + " | ".join(task_choices) + "]\n>>> "

    while fail_count > 0:
        input_string = input(full_text).upper()
        if input_string in task_choices:
            return input_string
        else:
            print("Error: " + input_string + " is not a valid input")
            fail_count -= 1
    print("Input invalid input passed in too many times. Exiting")