title: Delete dictionary key based on the condition
body: <p>Suppose I have a dictionary</p>
  <pre><code>d={2: [], 3: [], 5: [], 7: [], 11: [11], 13: [31], 17: [71], 19: [], 23: [], 29: [], 37: [73], 41: [], 43: [], 47: [], 53: [], 59: [], 61: [], 67: [], 79: [97], 83: [], 89: [], 101: [11, 101], 103: [13, 31], 107: [17, 701, 71], 109: [19], 113: [113, 131, 311], 127: [271], 137: [317, 173], 139: [193], 149: [419, 941, 491], 151: [151], 157: [571, 751], 163: [613, 631], 167: [617, 761], 179: [971, 197, 719], 181: [811, 181], 191: [191, 911], 199: [919, 991, 199]}........
  </code></pre>
  <p>Now, I want to delete the key if the length of the key and the length of the element of the lists of items are different. So, the desired result will be</p>
  <pre><code>d = {11: [11], 13: [31], 17: [71],37: [73], 79: [97],113: [113, 131, 311], 127: [271], 137: [317, 173], 139: [193], 149: [419, 941, 491], 151: [151], 157: [571, 751], 163: [613, 631], 167: [617, 761], 179: [971, 197, 719], 181: [811, 181], 191: [191, 911], 199: [919, 991, 199]}
  </code></pre>
  <p>Here if we see, the keys 101,107,103 got excluded because the length of the element inside the list item is not equal to the length of the key.</p>
  <p>Here keys are the prime numbers and the list items are their permutation. Permutated primes are omitted.</p>
  <p>I have tried using nested loop but didn't get the desired result.</p>
  <pre><code>for key in dict:# for each key
      for value in key:
          if len(str(value)) == len(key): 
              ... something like that i am trying
  
             
  </code></pre>