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.


Solution Q2.2.10