+ 1
Assistance wanted, please. I've inserted my code without numpy
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. https://code.sololearn.com/cwk9yqSu6D2G/?ref=app
2 Respuestas
+ 10
#From line 16...
std = (variance **(1/2))
new1 = []
for player in players:
# x = mean - player
if (player > (mean - std)) and (player < (mean + std)):
new1.append(player)
#else:
#continue
print(len(new1))
+ 1
Thank you Simba . It worked