title: Comparing 2 dictionaries in python and create a list with values from dictionary
body: <p>I have 2 dictionaries.</p>
  
  <pre><code>dict1={'Name':'','Age':'','Salary':''}
  dict2={'Name':'John','Salary':'25k'}
  </code></pre>
  
  <p>Required output is a list where if the key is matching the matching key's value will be added to the list. If not matching, a space has to be populated to the list. For example, Age is not available in dict2 and hence the 2nd item in list should be space and the output order should not change. </p>
  
  <pre><code>[John, ,25k]
  </code></pre>
  
  <p>So far i tried using a for loop to find matching keys, but not sure how to populate spaces for non-matching values and to maintain the order in dict1.</p>
  
  <p>Any help would be highly appreciated. Thanks in advance</p>