Interview Guides

You are given a small numeric dataset and want to summarize its center and spread before using it in downstream analysis. A simple example is the values 4, 8, 6, 5, 3, 7, 9.
Write a function to calculate the mean and variance of a dataset.