[Tutor] Boolean math question

Joe Bennett remailer at ka3nam.com
Sun Oct 23 05:14:40 CEST 2005


Anyone know of a good explanation of either how to perform boolean math 
in Python? What I am trying to do is AND two numbers together:

e = 51 AND 15

00110011
00001111
------------
00000011


In this case the result should be e = 3...


Ideas?



-Joe


More information about the Tutor mailing list