+ 1

Why I can't complete my Project?

I have almost complete a course but the project containing in it is not running well while it's correct. Someone should help and fixed the problem for me please. Below is the code Course: Pyhton Project: Basketball players https://code.sololearn.com/ctJSEZmfLgHt/?ref=appmean = sum(players)/len(players) v = [(i - mean)**2 for i in players] variance = sum(v)/len(players) sd = variance ** 0.5 print(sd) new_list = [] for i in players: if i > mean - sd and i < mean + sd: new_list.append(i) print(new_list) print(len(new_list))

29th Sep 2022, 6:21 AM
Ibrahim Muhammad Goggo
Ibrahim Muhammad Goggo - avatar
3 odpowiedzi
+ 1
#create new list array to get number of players in mean-std and mean+std list=[] #mean mean=sum(players)/len(players) #variance x=[(i**2) for i in players] var=(1/len(players))*(sum(x))-mean**2 #Standard Deviation std=var**0.5 x,y=(int(mean-std),int(mean+std)) for i in players : if i>x and i<y : list.append(i) #len print(len(list))
29th Sep 2022, 9:04 AM
ALI Moussa Kadjalla
ALI Moussa Kadjalla - avatar
0
Can you explain what you mean by "not running Well"
29th Sep 2022, 7:50 AM
dan
dan - avatar
0
Is not running the way it's
29th Sep 2022, 7:59 AM
Ibrahim Muhammad Goggo
Ibrahim Muhammad Goggo - avatar