title: DynamoDB Query FilterExpression Multiple Condition Chaining Python
body: <p>I am trying to programmatically create a FilterExpression in Python for a DynamoDB query based on user provided parameter(s) for a specific Attribute (let's call it '<code>ATTRIBUTE1</code>').</p>
  
  <p>All user provided parameters which I need to filter for are in a list. For example: <code>['Parameter1', 'Parameter2']</code></p>
  
  <p>Which would then take the form <code>Attr('ATTRIBUTE1').eq(PARAMETER1)&amp;Attr.('ATTRIBUTE1').eq(PARAMETER2)</code></p>
  
  <p><strong>How can I programmatically create an Attr for my FilterExpression like the above which is based on a changing number of user provided parameter(s)?</strong></p>
  
  <p>Sometimes I might have <code>['Parameter1']</code> and another time I might have <code>['Parameter1', 'Parameter2', 'Parameter3']</code> which need to turn into <code>Attr('ATTRIBUTE1').eq('Parameter1')</code> and <code>Attr('ATTRIBUTE1').eq('Parameter1')&amp;Attr('ATTRIBUTE1').eq('Parameter2')&amp;Attr('ATTRIBUTE1').eq('Parameter3')</code>, respectively.</p>
  
  <p>I haven't been able to find a solution for this yet and would appreciate any guidance. Thanks in advance.</p>