|||
Return the average of seq, or empty if the seq. is empty :rtype: TypeVar(T)
TypeVar
T
Note
If you know the size of seq, it is faster to do sum(seq) / len_of_seq
Example
>>> avg(range(1_000_000)) 499999.5
<Page contents
>Page contents:
avg()
Styled using the Piccolo Theme