Convert binary string to list of integers using Python
<p>I am new to Python. Here's what I am trying to do: </p>

<ol>
<li>Slice a long binary string into 3 digit-long chunks. </li>
<li>Store each "chunk" into a list called row. </li>
<li>Convert each binary chunk into a number (0-7).</li>
<li>Store the converted list of numbers into a new list called numbers. </li>
</ol>

<p>Here is what I have so far:</p>

<pre><code>def traverse(R):
        x = 0
        while x &lt; (len(R) - 3):
            row = R[x] + R[x+1] + R[x+2]
            ???
</code></pre>

<p>Thanks for your help! It is greatly appreciated.  </p>
