title: Xor bits in python
body: <p>Well I have an assignment to implement DES and I chose python, only problem is I can't figure out how to XOR bits of a String or Byte String, I can manually XOR them if only I can manage to read the 1s and 0s in them.</p>
  
  <p>Example: </p>
  
  <pre><code>s1 = b'abc'
  s2 = b'efg'
  
  s3 = XOR(s1,s2) // my own method
  </code></pre>
  
  <p>How can I XOR them or how can I get the binary values of 1s and 0s that represent them?</p>
  
  <p>If you use any python methods explain them, I'm relatively new to this language.</p>