def calcResult(dataf,assL,row):
    """
    calcResult takes a given row in a module marks file and calculates the overall module mark earned.
    Inputs: 
    dataf: file reference
    assL: list of component weights
    row: index of line being evaluated
    
    Output: 
    module mark earned
    """
    result=0.
    for i, val in enumerate(assL):
        #print i, val, dataf.iloc[row,i+4]
        result=result+float(dataf.iloc[row,i+4])*val/100.
    
    return result