def HeadLossCurcuit(List_Head):
    """
    Head Loss Circuit is a function which calculates the head loss around a closed ventilation circuit.
    Accepts input of a list (Junctions From-To) and Head Losses, in Water
    A closed-circuit head loss is calculate and returned as a percentage (%)
    Returns a Tuple of (Head Loss Error, Error Percentage)
    """
    HeadLossVal = 0         #Set Initial Head Loss to 0
    TotalHeadLoss = min(List_Head)       #Total Head Loss Determined by Lowest Press. Measurement, Error Percentage (%)
    for HeadLoss in List_Head:
        HeadLossVal += HeadLoss         #All Values are summed to determine closure error of circuit
    #print(TotalHeadLoss)
    percentage_error = round(abs(HeadLossVal)/abs(TotalHeadLoss)*100, 2)
    print("Error Percentage of Head Loss Circuit:", percentage_error)
    return (round(HeadLossVal, 3), percentage_error)