+ 1

Python for Data Science _ Basketball Player

Hello Could you help me to fix my code? I don't understand with part has a problem import math as mt players = [180, 172, 178, 185, 190, 195, 192, 200, 210, 190] mean = sum(players) / len (players) var = 0 i = 0 for i in players: var += (i - mean)**2 stdvar = mt.sqrt(mean / len(players)) cnt = 0 low , high = mean - stdvar, mean + stdvar for x in players: if low < x < high: cnt += 1 print (cnt)

29th Aug 2022, 10:57 AM
Mahdiye Rahimnavaz
Mahdiye Rahimnavaz - avatar
0 odpowiedzi