Hacker News new | ask | show | jobs
by palotasb 332 days ago
^ is the XOR operator, 0 XOR 5 is 5. (Exponentiation is *)

https://docs.python.org/3/library/operator.html#mapping-oper...

1 comments

Exponentiation is ** or pow()