title: Python - overtime pay compute using def & return function
body: <p>I am new to the python and have a question on python practice I am working on!
  Rate is given to 10.5 and hour is 45 hours. Pay should be $498.75 but my code below keeps showing $551.25...</p>
  
  <p>Am I missing anything? </p>
  
  <pre><code>def computepay(hrs, rate):
      if hrs &lt;=40:
          pay = hrs * rate
      elif hrs &gt; 40:
          pay = ((hrs-40)*1.5*rate) + (hrs*rate)
      return pay
  
  hrs = float(raw_input('Enter hours '))
  print computepay(hrs, 10.5)
  </code></pre>