Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 11th, 2012  |  syntax: Python  |  size: 0.17 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. def computepay(hours,rate):
  2.     if hours>40:
  3.         print "Pay1",40*float(rate)+(int(hours)-40)*(float(rate)*1.5)
  4.     else:
  5.         print "Pay2",int(hours)*float(rate)