+ 2

I cannot understand what do they ask me to do?

While learning 'Python for Data Science' curse, I came across this challenge, which says: <<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>> (The code included is just a list: players = [180, 172, 178, 185, 190, 195, 192, 200, 210, 190]) Can somebody explain me this in other words please?

28th Mar 2021, 5:13 AM
Bry4n
Bry4n - avatar
5 Réponses
+ 3
1. Calculate mean value 2. Calculate standard deviation (std) 3. Count how many numbers lies in range [mean - std, mean + std]
28th Mar 2021, 5:19 AM
Igor Kostrikin
Igor Kostrikin - avatar
+ 2
Igor Kostrikin I really thank you, I had calculated mean, median, variance and std xD to look for what could I do it. But now I got it so thanks a lot :D
28th Mar 2021, 5:26 AM
Bry4n
Bry4n - avatar
+ 2
Chepe, read carefully task description : You need to calculate and output how many players are in the range of one standard deviation from the mean. this is not python list, this is mathematical range.
30th Mar 2021, 3:39 AM
Igor Kostrikin
Igor Kostrikin - avatar
+ 1
Igor sorry I'm an amateur and I cannot get why do you do a list with two elements (step 3): the mean and std substraction and the mean and std sum... I mean how does it work? I thought directions say that we have to find how many players lies in the range of the std and the mean. could you explain me that step please? :D
30th Mar 2021, 12:32 AM
Chepe
Chepe - avatar
+ 1
Igor Oooh yeah you are right, I'm so sorry thanks for the clarification :D
31st Mar 2021, 4:23 AM
Chepe
Chepe - avatar