def get_moment(data, n):
    """
    Compute the *n* moment of the data list *data*.

    Parameters
    ----------
    data: list
        Data to take the moment of.
    n: int
        Moment number.

    Returns
    -------
    float
        *n* moment of the data.
    """
    N = len(data)
    m_n = 0
    for x in data:
        m_n += x ** n
    m_n /= N
    return m_n
