3 ms·
So I guess the answer would be 5 then. 7 & 13 = 0b0111 & 0b1101 = 0b0101 = 5
by c1ccccc1 5y ago
So I guess the answer would be 5 then. 7 & 13 = 0b0111 & 0b1101 = 0b0101 = 5
- Jensson 5y agoIn python 7 and 13 is 13. 7 is true, so it returns the second part of the and statement which is 13. So the answer is 13. Code below as proof: > print(13 % (7 and 13)) outputs: 0.