[Tutor] Bitwise operation

tee chwee liong tcl76 at hotmail.com
Mon Feb 28 14:48:38 CET 2011


> Binary (leading with '0b'):
> >>> 0b1110 & 0b0110
> 6
> 
> Good luck,
> 
> -Martin
> 

 
my IDLE seems to be giving me some funny error. i'm using Python 2.5 and Win XP. pls advise. 
 
>>> a=0b110010
SyntaxError: invalid syntax
>>> 0b1110 & 0b0110
SyntaxError: invalid syntax
>>> 0b10
SyntaxError: invalid syntax
>>> 
 
thanks
tcl 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110228/e92f6466/attachment.html>


More information about the Tutor mailing list