We had to calculate the players in the range of one standard deviations? My code is not excepted, however it works in other IDE
import math players = [180, 172, 178, 185, 190, 195, 192, 200, 210, 190] mean = sum(players)/len(players) var = sum((x-mean)**2 for x in players) / len(players) std_deviation = math.sqrt(var) print(std_deviation) upper_limit = int(mean + std_deviation) lower_limit = int(mean - std_deviation) z_v1 = players[0] - mean / std_deviation z_v2 = players[1] - mean / std_deviation z_v3 = players[2] - mean / std_deviation z_v4 = players[3] - mean / std_deviation z_v5 = players[6] - mean / std_deviation z_v6 = players[7] - mean / std_deviation z_v7 = players[8] - mean / std_deviation z_v8 = players[9] - mean / std_deviation z_v9 = players[10] - mean / std_deviation z_v_list = [z_v1, z_v2 , z_v3 , z_v4, z_v5, z_v6, z_v7, z_v8, z_v9] for x in z_v_list: if int(x) >= lower_limit and int(x) <= upper_limit: print(x) else: print("no value found in range of one standard deviation")