Created
August 31, 2021 07:31
-
-
Save rdapaz/5e2b9d65eed7f35b37572f3bf09978be to your computer and use it in GitHub Desktop.
Hex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def strHex(s): | |
return f"0x%0.2X" % s | |
strHex(3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment