+ 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

1st Jan 2022, 11:07 AM
Frimpong Godfred
Frimpong Godfred - avatar
2 Respostas
+ 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))
1st Jan 2022, 11:22 AM
Simba
Simba - avatar
+ 1
Thank you Simba . It worked
1st Jan 2022, 11:26 AM
Frimpong Godfred
Frimpong Godfred - avatar