fork download
  1. # your code goes here
  2.  
  3.  
  4. #hrs = float(raw_input("Enter Hours:"))
  5. #rate = float(raw_input("Enter rate:"))
  6. hrs = 45
  7. rate = 10.50
  8. tests = "YO"
  9.  
  10. def computepay(hrs,rate):
  11.  
  12. print tests
  13. if hrs > 40:
  14. return (float(rate) * 40) + (float(hrs) -40) * (float(rate) * 1.5)
  15. else:
  16. return hrs * rate
  17.  
  18. p = computepay(45,10.50)
  19. print "Pay",p
  20.  
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
YO
Pay 498.75