def pnorm(x, p):
    """
    Returns the L_p norm of vector 'x'. 

    :param x: The vector.
    :param p: The order of the norm.
    :return: The L_p norm of the matrix. 

    """
    result = 0
    for index in x:
        result += abs(index) ** p
    result = result ** (1/p)
    return result