>>> x = 1101 ^ 0111
  File "<stdin>", line 1
    x = 1101 ^ 0111
                  ^
SyntaxError: invalid token
Why am I getting this syntax error in python? I see online that, "^ Bitwise Exclusive XOR Description Returns the result of bitwise XOR of two integers.
Syntax A ^ B
A Integer object. B Integer object."
So I think I am using two integers.