Python bitoperators

Posted by Neelima on Stack Overflow See other posts from Stack Overflow or by Neelima
Published on 2010-06-18T09:07:26Z Indexed on 2010/06/18 9:13 UTC
Read the original article Hit count: 159

Filed under:

What do the bit operators like AND(&),OR(|),XOR(^) in python do behind the screen? What do they calculate? I cannot understand the results they give when used in a program?

30&45 yields 12. How can we relate these three?

30|45 yields 63. How are these three related?

Please answer this...

© Stack Overflow or respective owner

Related posts about python