title: Convert integer to hex in Python
body: <p>In Python I want to tranform the integer <code>3892</code> into a hexcode with the given format and the result <code>\x00\x00\x0F\x34</code>. How can this be achieved?</p>