Hi let's say I have 5 decimal numbers.How can I convert them firstly to hexadecimal and to string afterwards. Is there any built in function for this? I tried below
numbers = [123,46,0,11,6]
for number in numbers:
print(hex(number).lstrip("0x").upper())
Expected output is
7B
2E
00
0B
06
but the result is
7B
2E
B
6