Hello ,
I have this list
so the finall list will be
there is no way to delete this post , I have found how to do it
I have this list
My List ['0x5b', '0x1ab', '0x282', '0x140', '0x6d7', '0x170'] 0x5b<class 'str'> 0x1ab<class 'str'> 0x282<class 'str'> 0x140<class 'str'> 0x6d7<class 'str'> 0x170<class 'str'>I want\need to maks all values with 0xFF
so the finall list will be
0x5b 0xab 0x82 0x40 0xd7 0x70*********
there is no way to delete this post , I have found how to do it
while i < 6: temp= int(MyList[i], 16) temp = temp & int(0xff) MyList[i] = hex(temp) print(MyList[i]) i += 1Thanks,