+ 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)
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))
+ 3
🅰🅹 (Challenge Accepted)
Thanks, ❤️
Hot today
help my code does not iterate
0 Votes
What is the problem 🤨🧐??
1 Votes
Generador de divicion python.
1 Votes