So I am trying to define function to calculate mean and st.dev (without packages) of a given series of numbers, also the function must be provided with a minimum of 2 numbers, where *arg means I can use any list of numbers>1
def avg(x,y,*arg): return (x+y)/2 if len(arg)<1 else (x+y+sum(arg))/(2+len(arg))
def stddev(x,y,*arg):
mu = (x+y)/2 if len(arg)<1 else (x+y+sum(arg))/(2+len(arg))
return ([x - mu] ** 2/len(arg))**0.5