3 ms·
Why would "0^5" evaluate to 5? (question 21) And is there a way to link to a specific question?
by jvdvegt 1y ago
Why would "0^5" evaluate to 5? (question 21)
And is there a way to link to a specific question?
- andrewfurey2003 1y agoxor
- palotasb 1y ago^ is the XOR operator, 0 XOR 5 is 5. (Exponentiation is *) https://docs.python.org/3/library/operator.html#mapping-operators-to-functions https://docs.python.org/3/library/operator.html#mapping-oper...
- teddyh 1y agoExponentiation is ** or pow()