I need convert this array
data = [
#SHO
0x56, 0x0d,
#CMD
0x1, 0x00, 0x00, 0x00,
#ARG
0x1, 0x0,
#SIZE
0x02, 0x00, 0x00, 0x00,
#OPAQUE
0x01, 0x02,
#RESERVED
0x00, 0x00
]
and produce a string
# converted data into s
print s
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
or (as perhaps as per @thg435’s suggestion) using
chr()in place ofstr():Is this what you are looking for? If not, can you provide the desired output?