def compositeWallSeries(resistanceList):
    """This function calculates the resistance value of resstances in series
    the input ("resistanceList" is a list of resistances each of which is adictionary
    for example:R1={"name":"R1","type":"cond","length":0.03,"area":0.25,"k":0.026}
    and a set of resistances resistanceList= [R1,R2,R3]
    pay attention that the units are as follows: area : m2, length : m, k= W/m.K
    the output resistancesResults is a dictionary with the following structure
     {'R1': 4.62,  'R2': 0.36,'R6': 0.36,'R_total': 5.34}
    the unit of output values is degC/W 
    """
    resistancesResults = {}
    R_tot=0
    for resistance in resistanceList:
        A = resistance["area"]
        L = resistance["length"]
        k = resistance["k"]
        R= round(L/(k*A),2)       
        R_tot += R
        nameOfResistance = resistance["name"]
        resistancesResults[nameOfResistance] = round(R,2)
    resistancesResults["R_total"] = round(R_tot,2)  
    return resistancesResults