title: Python: How to query a list of objects?
body: <p>Let's say I have this list of objects:</p>
  
  <pre><code>listt = [{
        "CustomerId": "1",
        "Date": "2017-02-02",
        "Content": "AAAAAAAA",
        "Type": 2
      },
      {
        "CustomerId": "2",
        "Date": "2017-02-03",
        "Content": "BBBBBBBB",
        "Type": 1
      },
      {
        "CustomerId": "3",
        "Date": "2017-02-01",
        "Content": "CCCCCCCCC",
        "Type": 1
      },
      {
        "CustomerId": "4",
        "Date": "2017-02-12",
        "Content": "DDDDDDDDDD",
        "Type": 2
      }, ]
  </code></pre>
  
  <p>What's the cleanest way of finding answers to these?</p>
  
  <blockquote>
    <ol>
    <li>Minimum Date where Type = 1.</li>
    </ol>
    
    <p>=> 2017-02-1</p>
    
    <ol start="2">
    <li>Select Content where Type = 2 and Date = (Minimum Date among all objects with Type = 2)</li>
    </ol>
    
    <p>=> AAAAAAAA</p>
  </blockquote>
  
  <p>I'm reading about leveraging lambda and filters but I haven't been able to make any progress. Can anyone please help?</p>