I want to take an integer (that will be <= 255), to a hex string representation
e.g.: I want to pass in 65 and get out \'\\x41\', or
65
\'\\x41\'
Try:
"0x%x" % 255 # => 0xff
or
"0x%X" % 255 # => 0xFF
Python Documentation says: "keep this under Your pillow: http://docs.python.org/library/index.html"