I have a list of 16 elements [a00,a01,a02,…,a15] and would like to compute a list [b0,b1,b2,b3,b4,b5,b6,b7] where
b0 = a00*256+a01
b1 = a02*256+a03
b2 = a04*256+a05
(etc.)
what’s the easiest way of doing this? (I’m a beginner in python)
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.
You can make a comprehension list…