convert in HEX
Posted: Thu Jun 18, 2020 7:53 am
hello ,
i try convert
in Hexadecimal
i try with :
but :
thank
i try convert
Code: Select all
mem=[1,0,0,1,0,1,0,0,0,0,0,0]
i try with :
Code: Select all
res = ''.join(format(x, '02x') for x in mem)
Code: Select all
NameError: name 'format' isn't defined