title: Printing return value in function
body: <p>The <code>print(result)</code> in my <code>total</code> function isn't printing my result.</p>
  
  <p>Shouldn't the <code>sums</code> function return the result value to the function that called it?</p>
  
  <p>This is my code:</p>
  
  <pre><code>def main():
  
    #Get the user's age and user's best friend's age.
  
    firstAge = int(input("Enter your age: "))
    secondAge = int(input("Enter your best friend's age: "))
    total(firstAge,secondAge)
  
  def total(firstAge,secondAge):
    sums(firstAge,secondAge)
    print(result)
  
  #The sum function accepts two integers arguments and returns the sum of those arguments as an integer.
  
  def sums(num1,num2):
    result = int(num1+num2)
    return result
  
  main()
  </code></pre>
  
  <p>I'm using Python-3.6.1.</p>