Obvious how to do it in multiple passes through the list.
But...
Standard deviation is easily computed from this.
So, we can compute the sum of the list elements and the sum of the squares of the list elements in a single pass.