title: Python - Pushing values present in a array to Dictionary
body: <p>I need to reconstruct a new dictionary based on the keys present in an array.from an existing dictionary. array value will be changing each and every time</p>
  <pre><code>olddict =   {
    &quot;brand&quot;: &quot;Ford&quot;,
    &quot;model&quot;: &quot;Mustang&quot;,
    &quot;year&quot;: 1964,
    &quot;createdby&quot;: &quot;Mustang&quot;,
    &quot;orderedby&quot;: &quot;Mustang&quot;
  }
  
  arr = ['brand','year','createdby']
  </code></pre>
  <p>Required output :</p>
  <pre><code>newdict=    {
    &quot;brand&quot;: &quot;Ford&quot;,
    &quot;year&quot;: 1964,
    &quot;createdby&quot;: &quot;Mustang&quot;
  }
  </code></pre>