Hello! There is data in hex: 0x000407d10001
it is necessary to take only the necessary part from hex: these are 01
and 07d1
.
You can do this:
c = '0x000407d10001' c[12:] c[6:-4]
You need to do this all in a binary bin. The task is to ensure that the operation is performed as quickly as possible, I think if this operation will be performed in bin, then its speed will be higher.