def get_user_choice(query):
    """ Asks the user a boolean question """
    print("\n")
    query = color(query, Fore.GREEN + Style.BRIGHT) + " "

    while True:
        user_choice = input(query).strip().lower()

        if ["y", "yes", "1"] in user_choice:
            return True

        if user_choice in ["n", "no", "0"]:
            return False

        print(color("Invalid input: '" + user_choice + "'", Fore.RED + Style.BRIGHT))
dataset/ETHPy150Open tobspr/RenderPipeline/setup.py/get_user_choice/swapped operands of `in`