title: How do I use a condition on a dictionary array to pull elements from another array in the same dictionary?
body: <p>I have a dictionary of arrays.</p>
  
  <pre><code>mydict={'a':[45,65,78,32], 'b':['red','blue','green','yellow'], 'c':[3.4, 4.5, 6.5, 7.6]}
  </code></pre>
  
  <p>I want to pull the elements of <code>mydict['b']</code> when <code>mydict['a']</code> is greater than <code>35</code>. I want</p>
  
  <pre><code>myarr = ['red','blue','green']
  </code></pre>
  
  <p>I tried - </p>
  
  <pre><code>myarr = [mydict['b'] for num in mydict['a'] num &gt; 35]
  </code></pre>
  
  <p>I do not want to go the C++/C route of enumerating and saving the index and using the index. Not Sounds like Python.</p>
  
  <p>How do I do this?</p>