Standardizing recentres a feature on zero and rescales it so one unit means one standard deviation:
z = (value - mean) / std
Task: write zscore(values) returning the standardized list, rounded to 4 decimal places.
n, not n - 1.Unlike min-max scaling this has no fixed range, which is exactly why outliers hurt it less — an extreme value lands at z = 8 and stays out there instead of crushing everything else toward one end.