minus-squareEggscellent@sh.itjust.workstoPython@programming.dev•Why can't I use the '|' bitwise operator in this statement?linkfedilinkEnglisharrow-up4·19 hours agoPart of the problem is operator precedence - it’s ORing together the three numbers, then comparing that to “coin”. 5 = 00101 10= 01010 25= 11001 11111 = 31 It’s testing if coin equals 31. linkfedilink
Part of the problem is operator precedence - it’s ORing together the three numbers, then comparing that to “coin”.
5 = 00101 10= 01010 25= 11001 11111 = 31
It’s testing if coin equals 31.