Functionality: Implement the XOR (exclusive OR) operation for boolean inputs. The XOR operation returns True if exactly one of the two boolean inputs is True, and it returns False if both inputs are the same (both True or both False).
Input/Output Requirements:
The function should be defined with the following signature:
python
def xor(a: bool, b: bool) -> bool:
Inputs:
a: A boolean value (True or False).
b: A boolean value (True or False).
Output:
The function should return a boolean value:
True if one of the inputs is True and the other is False.
False if both inputs are the same.
Implementation Instructions:
Write the implementation of the XOR function directly in a file named /app/solution.py.
Ensure the function accurately follows the defined behavior with all possible combinations of boolean inputs.