[Tutor] Bitwise operation

tee chwee liong tcl76 at hotmail.com
Mon Feb 28 10:20:15 CET 2011


hi, 
 
i'm confused with & and AND. for eg:
>>> 1110 & 0110
64
>>> 1110 and 0110
72
 
i'm expecting if 1110 and with 0110 will get 0110 or 6. 
pls advise. 
 
thanks
tcl
  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110228/c9260740/attachment.html>


More information about the Tutor mailing list