def L1_norm(seq):
    """calculates the L1 norm of a sequence or vector
	
	:param seq: the sequence or vector
	:returns: the L1 norm"""
    norm = 0
    for i in range(len(seq)):
        norm += abs(seq[i])
    return norm
