title: Return error in this "computepay" function
body: <p>So I have this code that computes for your total money when you input hours and rate. Also if you work more than 40 hours you get 1.5 times rate per hours for each hour spent extra.</p>
  
  <p>My question is I defined a function with this code:
  and run it using computepay() the command prompt asks for
  "Enter hours" 
  "Enter Rate"</p>
  
  <p>Then it quits without spitting out the value that I want. I am complete noob with programming so please help and patience is appreciated.
  Thank you.</p>
  
  <pre><code>def computepay():
      try: 
          int1 = raw_input("Enter Hours")
          h = float(int1)
          int2= raw_input("Enter Rate")
          r = float(int2)
      except:
          print "Error, please enter a numeric input"
          quit()
      if h &gt;= 40:
          pay1 = 40 * r + (h - 40) * r * 1.5
          pay2 = h * r
          return pay1
      else:
          return pay2
  </code></pre>