Saying a distribution "has a long right tail" is useful, but two datasets can both lean right by very different amounts. The skewness coefficient turns the lean into a single number. For values with mean :
Task: write skewness(values) that returns a tuple (g, tail):
g is the coefficient above, rounded to 4 decimal places.tail names the direction of the longer tail, decided from the rounded g: "right" if g > 0, "left" if g < 0, and "symmetric" if g is exactly 0.(0.0, "symmetric").values is a non-empty list of numbers in any order.
Once your code passes every test, a reference solution shows up here so you can compare it with yours.