def seminorm_loop(x, p, display = False):
    """
    Calculate for a given complex vector and some 1 <= p < inf the l_p-semi-norm
    using loops and scalar arithmetic
    """
    if p < 1:
        raise ValueError("p must be >= 1")

    # Using scalar arithmetic to calculate each elements absolute value raised to p
    x_abs_p = x.real**2 + x.imag**2 * (1j)
    x_abs_p = ((x_abs_p.real + x_abs_p.imag) ** 0.5) ** p

    # Sum all elements with an uneven index
    sum = 0
    for j in range(1, len(x_abs_p)+1, 2):
        # Since arrays in python are zero-based, substract 1 from j
        j -= 1
        sum += x_abs_p[j]

    # Raise to 1/p to get the l_p-semi-norm
    result = sum**(1/p)

    if display:
        print(result)

    return result