+ 3

This is my attempt what's the mistake ?

The given code includes a list of heights for various basketball players. You need to calculate and output how many players are in the range of one standard deviation from the mean. ATTEMPT :players = [180, 172, 178, 185, 190, 195, 192, 200, 210, 190] a = (1892/10) total = 29229 average = 29229/10 std = 2922.9 sqd = 54 x = list(range(a,sqd)) print(x)

13th Apr 2021, 2:54 PM
Codemurai
Codemurai - avatar
2 Answers
+ 6
Codemurai Get mean value using this formula mean = sum(players) / len(players) And count players whose height is greater than mean value like this print (sum(i > mean for i in players))
13th Apr 2021, 3:39 PM
A͢J
A͢J - avatar
14th Apr 2021, 12:28 PM
Codemurai
Codemurai - avatar