def f(*args): tot=0 for a in args: tot += a return tot