On Aug 21, 2:57 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: [...] > > pay = min(num, 22) * 0.4 + max(num-22, 0) * 1.4
pay = num*0.4 + (num>22)*(num-22) ;-) -=Dave -- http://mail.python.org/mailman/listinfo/python-list
On Aug 21, 2:57 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: [...] > > pay = min(num, 22) * 0.4 + max(num-22, 0) * 1.4
pay = num*0.4 + (num>22)*(num-22) ;-) -=Dave -- http://mail.python.org/mailman/listinfo/python-list