title: Calculating age in python
body: <p>I am attempting to create a code where the user is asked for their date of birth and today's date in order to determine their age. What I have written so far is:</p>
  
  <pre><code>print("Your date of birth (mm dd yyyy)")
  Date_of_birth = input("---&gt;")
  
  print("Today's date: (mm dd yyyy)")
  Todays_date = input("---&gt;")
  
  
  from datetime import date
  def calculate_age(born):
      today = date.today()
      return today.year - born.year - ((today.month, today.day) &lt; (born.month, born.day))
  
  age = calculate_age(Date_of_birth)
  </code></pre>
  
  <p>However it is not running like I would hope. Could someone explain to me what I am doing wrong?</p>