title: TypeError: an integer is required (got type tuple) datetime Python
body: <p>I am trying to get the days between two dates. Here is my code:</p>
  
  <pre><code>from datetime import date, timedelta
  def days_diff(a, b):
      f = date(a)
      s = date(b)
      return abs(f-s)
  print(days_diff((2014, 8, 27), (2014, 1, 1)))
  </code></pre>
  
  <p>But I get this error:</p>
  
  <pre><code>TypeError: an integer is required (got type tuple)
  </code></pre>
  
  <p>I wonder why? I imported the date and timedelta. Can anyone please help? Thanks in advance</p>