title: Finding and comparing the minimum timedelta of 2 datetime lists python
body: <p>I have 2 lists containing <strong>datetime.timedelta</strong> values.
  Need help finding the minimum of both lists and comparing them to find out which is greater.</p>
  
  <p>Note: I am fairly new to Python</p>
  
  <p>This is the first list, extracting datetime values from dicts v,w:</p>
  
  <pre><code>for y in range(len(v)):
      try:
              gap.append(v[y]-w[y])
      except:
              print "End of list"
  </code></pre>
  
  <p>And this is the second list, calculating intervals within dict values:</p>
  
  <pre><code>for y in range(len(v)):
      try:
              comp.append(v[y]-v[y+1])
      except:
              print "End of list"
  </code></pre>
  
  <p>I want to be able to do this:</p>
  
  <pre><code>if min(comp)&lt;min(gap):
      print "Anomaly detected"
  else:
      print "Looks good"
  </code></pre>