Make a function statisticlistof int that takes as input a


Make a function statistic(list_of int) that takes as input a list of (exactly) three integers and returns a list of the following statistics: sum, average value, smallest value, largest value (in that order). For example:

>>> statistics([2, 8, 7])
[17, 5.666666666666667, 2, 8]
>>> statistics([11, 2, 11])
[24, 8.0, 2, 11]

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Make a function statisticlistof int that takes as input a
Reference No:- TGS02651602

Now Priced at $10 (50% Discount)

Recommended (90%)

Rated (4.3/5)