Converting an array of 0 and 1 to integer
<p>I have an array of integers which store only 1 or 0. Is there a direct function in python which would do it?
Suppose the array is [0,1,0,1] then it should return 5.</p>
