Logo

Programming-Idioms

History of Idiom 175 > diff from v7 to v8

Edit summary for version 8 by Oldboy:
New Python implementation by user [Oldboy]

Version 7

2019-01-06, 00:09:44

Version 8

2019-02-11, 19:59:47

Idiom #175 Bytes to hex string

From array a of n bytes, build the equivalent hex string s of 2n digits.
Each byte (256 possible values) is encoded as two hexadecimal characters (16 possible values per digit).

Idiom #175 Bytes to hex string

From array a of n bytes, build the equivalent hex string s of 2n digits.
Each byte (256 possible values) is encoded as two hexadecimal characters (16 possible values per digit).

Extra Keywords
hexa
Extra Keywords
hexa
Code
s = a.hex()