Learning Scientific Programming with Python (2nd edition)
Q2.2.10: Exponentiation gotcha
Question Q2.2.10
Explain why the following expression does not evaluate to 100.
>>> 10^2
8
Hint: Refer to the Python documentation for \emph{bitwise} operators.