title: How to xor hex value in Python (1 bit answer)
body: <p>lets say i have the following variable
  data=0xab12cd30
  i would like to get the xor over the 32 bits (for example in verilog ^data)</p>
  
  <p>for example (giving 8bit examples)</p>
  
  <p>data = 0x11 -> result should be 0</p>
  
  <p>data = 0x10 -> result shoule be 1</p>
  
  <p>data = 0x21 -> result should be 0</p>
  
  <p>data = 0x23 -> result should be 1</p>
  
  <p>What is the easiest way?
  Using Python 2.4.3</p>