In this tutorial, we'll learn how to calculate the variance and the standard deviation in Python. The second is the standard deviation, which is the square root of the variance and measures the amount of variation or dispersion of a dataset. The first measure is the variance, which measures how far from their mean the individual observations in our data are. Two closely related statistical measures will allow us to get an idea of the spread or dispersion of our data.