4.30. Solution: Statistics for a list of numbers