from Statistics.Stats.mean import mean
from Statistics.Stats.standard_deviation import standard_deviation


def Z_score(my_population):
    mean_result = mean(my_population)
    stdev_result = standard_deviation(my_population)
    zscore = list()
    for x in my_population:
        my_score = (x - mean_result) / stdev_result
        zscore.append(round(my_score, 2))
    return zscore

from Statistics.Stats.mean import mean
from Statistics.Stats.standard_deviation import standard_deviation


def Z_score(my_population):
    mean_result = mean(my_population)
    stdev_result = standard_deviation(my_population)
    zscore = list()
    for x in my_population:
        my_score = (x - mean_result) / stdev_result
        zscore.append(round(my_score, 2))
    return zscore
