> > buy_containers = roundup(need/container) > > > Yeah, rather than code these as explicit variables, I'd strongly recommend > rewriting each of these as functions. Concretely: > > def buy_containers(stock, weekly_quota, container): > return roundup(need(stock, weekly_quota) - extra(stock, weekly_quota))
Gaaa. I don't know where the heck that function came from. *grin* Let me try that again: ######################################################### def buy_containers(stock, weekly_quota, container): return roundup(need(stock, weekly_quota) / container) ######################################################### Sorry; my eyes must have been wandering when I was writing that code. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor