HF RL Explorer

Task: Implement Logical XOR Function in Python

Task: Implement Logical XOR Function in Python: a task in Terminal-Lego-15k (Harbor dataset). In Python, the ^ operator performs bitwise XOR, which works on integers but not on other types like strings. Your task is to implement a logical xor function that performs logical XOR on any two variables.

The task

In Python, the `^` operator performs bitwise XOR, which works on integers but not on other types like strings. Your task is to implement a `logical_xor` function that performs logical XOR on any two variables.

Part of PrimeIntellect/Terminal-Lego-15k.