title: How to set slice for reverse hex
body: <p>Need help with slice of a hex to reverse</p>
  <p>I have</p>
  <pre><code>                b = str(valueh)
                  c = str(valueh)[-1:1:-1]
                  if all(x in string.hexdigits for x in c):
                      d = int(c, 16)
                      print(hex(d))
  </code></pre>
  <p>for example for a value os 0x123456 this prints 0x654321 and i need it to print 0x563412.</p>
  <p>Can someone help me out?</p>