Larry Bates a écrit : > > def avg(l): > return float(sum(l))/len(l) > > >>>>avg([1,2,3,4]) > > 2.5
def avg(*args): return float(sum(args)) / len(args)) > > Which can actually be read and debugged in the future! in_my_arms(tm) -- http://mail.python.org/mailman/listinfo/python-list