 I cannot understand what do they ask me to do? | Sololearn: Learn to code for FREE!

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

+3

1. Calculate mean value 2. Calculate standard deviation (std) 3. Count how many numbers lies in range [mean - std, mean + std]

+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

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

+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

+1

Igor Oooh yeah you are right, I'm so sorry thanks for the clarification :D