Evaluate XOR operation
elif ( Str [ k ] == ' ^ ' ) : NEW_LINE INDENT if ( isTrue == 1 ) : NEW_LINE temp_ans = temp_ans + leftTrue * rightFalse + leftFalse * rightTrue NEW_LINE else : NEW_LINE temp_ans = temp_ans + leftTrue * rightTrue + leftFalse * rightFalse NEW_LINE DEDENT dp [ i ] [ j ] [ isTrue ] = temp_ans NEW_LINE return temp_ans NEW_LINE