def getCol(headrow, headrowLength, gradeText, headrowx):
    """
    Sets the variable 'col' equal to the 'Col' elements
    and prints out the values for each column.
    """
    colx = 1 # loop iterator
    col = headrow.childNodes[colx]
    x = ""
    while colx < headrowLength:
        colText = col.childNodes[0]
        if colx == 1:
            #x = colText.data
            if gradeText != "":
                x = "  -- " + gradeText + " | " + colText.data
            elif gradeText == "" and headrowx == 1:
                x = "  -- Test Result " + "\t" + " | " + colText.data
            else:
                x = "  -- " + "\t"*2 + " | " + colText.data
        else:
            x = x + "  |  " + colText.data
            
        #print colx
        colx += 2
        if colx < headrowLength:
            col = headrow.childNodes[colx]

    if x != "":
        print x

    Sets the variable 'col' equal to the 'Col' elements
    and prints out the values for each column.
    
recipes/Python/305302_mbsa2txt/recipe-305302.py