I want the following steps to be implemented in python
1) string 7f33117cf266a525
2) uppercase 7F33117CF266A525
3) Put it in an array [7F,33,11,7C,F2,66,A5,25]
4) convert it to binary[127,51,17,124,242,102,165,37]
and vice-versa
1) binary[127,51,17,124,242,102,165,37]
2) convert to hex [7F,33,11,7C,F2,66,A5,25]
3) 7F33117CF266A525
4) 7f33117cf266a525
string="7f33117cf266a525"
print(string.upper())
T=list(string)
T
gives an output ['7', 'F', '3', '3', '1', '1', '7', 'C', 'F', '2', '6', '6', 'A', '5', '2', '5'] how to seperate two characters with comma?
[string[i:i+2] for i in range(0, len(string), 2)]