[lang-ref] ( string_to_hex ) ( python )
def test_string_to_hex():
# encode + hex
s = 'abc'
h = s.encode('utf-8').hex()
assert h == '616263'
def test_string_to_hex():
# encode + hex
s = 'abc'
h = s.encode('utf-8').hex()
assert h == '616263'