title: How check if values of keys in list of dictionaries are both equal 0
body: <p>I have a list of dictionaries like:       </p>
  
  <pre><code>dicts = [dict1,dict2,dict3,dict4]
  
  dict1 = [{'name': 'blue', 'y': 1}, {'something else': 'red', 'y': 0}]  
  
  dict2 = [{'name': 'green', 'y': 0}, {'name': 'purple', 'y':2}]
  </code></pre>
  
  <p>dicts are list of dictionaries</p>
  
  <p>How can I check if both values in dict1 first and second y value is 0 etc.
  If dict have both y == 0 then assign empty array</p>
  
  <p>I have tried also something like this but have to repeat this so many times for each dict</p>
  
  <pre class="lang-py prettyprint-override"><code>check = 0
          for el in dict1:
              if el['y'] == 0:
                  check += 1
              if check == len(dict1):
                  dict1 = []
  </code></pre>
  
  <pre class="lang-py prettyprint-override"><code>    for el in dicts:
              for y in el:
                  if all(x == 0 for x in y.values()):
                      el = []
  
  </code></pre>