import math


def standard_deviation(all_grades, mean):
    """Return the standard deviation of grades"""
    sum_of_sqrs = 0
    for grade in all_grades:
        sum_of_sqrs += (grade - mean) ** 2
    return math.sqrt(sum_of_sqrs / len(all_grades))