def _mean(values):
 return (sum(values) / float(max(len(values), 1)))

def _mean ( values ) : return ( sum ( values ) / float ( max ( len ( values ) , 1 ) ) )
calculate the mean for a list of integers .