def parity_list(list_val, init_value=0):
    """
        Helper function computes parity on list of 1's and 0's
    """
    curr_value = init_value
    for value in list_val:
        curr_value = curr_value ^ value

    return curr_value