title: Finding 'runs' within a list
body: <p>I have an array with values like: </p>
  
  <pre><code>list1=[0,0,1,1,14,4,3,0,0,0,1,4,3]
  </code></pre>
  
  <p>I want to find the length of runs within that array where x > 0. So the output would be something like:</p>
  
  <pre><code>runs = [5,3]
  </code></pre>
  
  <p>This is what I have so far, but don't know how to proceed:</p>
  
  <pre><code>runs = []
  curr = 0
  for x in list1:
      while x &gt; 0:
      curr += 1
  #Not sure where to go from here. Somehow append curr to runs and 
  reset curr once the run is over
  </code></pre>
  
  <p>Is this the right way to even approach it?</p>