I have a potentially long array of one\'s and zero\'s that looks like this: a = [0,0,1,0,1,0,.....] I want to translate each consecutive pair of values to an intege
a = [0,0,1,0,1,0,.....]