title: How to set default values in list of dictionary python?
body: <p>I have a list of dictionary accepting the user Input values as shown below:</p>
  
  <pre><code>def get_params(app_name):
      return [
             {'Key':'Path', 'Value': event['Path']},
             {'Key':'TargetType', 'Value': event['Target']},
             {'Key': 'Owner', 'Value': event['Owner']}
            ]
  
  def lambda_handler(event,context):
       params = get_params('hello')
       print(params)
  </code></pre>
  
  <p>How to set default values for <code>Path</code> as <code>/</code> and <code>TargetType</code> as <code>True</code>for example, so that if user has not passed any value, it picks the default value? </p>
  
  <p>Edit: Wanted to have default value set for <code>Path</code>, in case the value of <code>event['Path']</code> is not found or is null. </p>