This is my attempt what's the mistake ? | SoloLearn: Learn to code for FREE!

+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)

4/13/2021 2:54:13 PM

Codemurai

2 Answers

New Answer

+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))

+3

🅰🅹 (Challenge Accepted) Thanks, ❤️