[Tutor] Bitwise &

Ben Finney ben+python at benfinney.id.au
Wed Oct 14 19:29:20 EDT 2015


ਨਿਹੰਗ ਪੰਜਾਬੀ <niihung at gmail.com> writes:

>  'if (n & 1)'  below works but I don't understand why/how.  Kindly
>  help.

Can you kindly help us understand your confusion? You chose a subject
field that indicates why it works, so I don't know what your specific
confusion is.

-- 
 \        “Telling pious lies to trusting children is a form of abuse, |
  `\                    plain and simple.” —Daniel Dennett, 2010-01-12 |
_o__)                                                                  |
Ben Finney



More information about the Tutor mailing list