title: Compare two hex numbers
body: <p>I have a function that I use to compare two strings character by character and do some additional tasks on it. I want to modify it to compare hex numbers instead.</p>
  
  <p>For example: If <code>A = "hello"</code>, <code>B = "himan"</code> were to be compared. I used to run a <code>for</code> loop and compare character by character. It worked fine.</p>
  
  <pre><code>for x, y in zip(A, B):
      if x == y:
          do something
  </code></pre>
  
  <p>How do I modify it to consider hex numbers. For example, if <code>A = "30303867"</code> and <code>B = "3f160303"</code>, I want to match <code>30</code> with <code>3f</code> first then so on. Normally, I can only match <code>3</code> by <code>3</code> and so on.
  Thanks</p>