Python Bitwise Operators Example
Example: #!/usr/bin/python a = 60 # 60 = 0011 1100 b = 13 # 13 = 0000 1101 c = 0 c = a & b; # 12 = 0000 1100 print “Line 1 – Value of c is “, c c = a | b; # 61 = 0011 1101 print “Line 2 – … Read more
Example: #!/usr/bin/python a = 60 # 60 = 0011 1100 b = 13 # 13 = 0000 1101 c = 0 c = a & b; # 12 = 0000 1100 print “Line 1 – Value of c is “, c c = a | b; # 61 = 0011 1101 print “Line 2 – … Read more