title: Loop through list until value is found then breaking?
body: <p>I have a list: <code>[1,2,3,4,5,6,0,9,2]</code> that I want to loop through.</p>
  
  <p>I want to create another list of dictionaries for every 3 elements until I reach a <code>0</code> element (i.e. the first dictionary will be <code>{'gold':1,'silver':2,'bronze':3}</code> and similarly for <code>4,5,6</code>). The loop will terminate since it reaches <code>0</code>.</p>
  
  <p>So the resulting list would be: <code>[{'gold':1,'silver':2,'bronze':3},{'gold':4,'silver':5,'bronze':6}]</code></p>
  
  <p>Being new to Python and coming from a PHP background, how would I solve this leveraging functions like <code>zip</code> or <code>map</code> or would I have to resort to plain while loops?</p>