human
Solve the following python programming problem given the following code:
def determineHeadingLevels(doc, headings) : 
    headerLevel = [0, 0, 0, 0, 0] 
    def incrementLevel(level) : 
        headerLevel [(level - 2)] += 1 
        for i in range ((level - 1), 5) : 
            headerLevel [i] = 0 
def printLevel() : 
        return '.'.join ((unicode (x) for x in headerLevel if (x > 0))) 
skipLevel = float ('inf') 
    for header in headings : 
        level = int (header.tag [(- 1)]) 
        if header.get ('data-level') : 
            del header.attrib ['data-level'] 
if (hasClass (headings, 'no-num') or (textContent (header) [0 : 9].lower () == 'appendix ')) : 
            skipLevel = min (level, skipLevel) 
            continue 
if (skipLevel < level) : 
            continue 
else : 
            skipLevel = float ('inf') 
incrementLevel (level) 
        header.set ('data-level', printLevel ()) 

    
    

    Fix the buggy line: if (hasClass (headings, 'no-num') or (textContent (header) [0 : 9].lower () == 'appendix ')) :
assistant
#Here is Python code to fix the buggy line: if (hasClass (headings, 'no-num') or (textContent (header) [0 : 9].

if (hasClass (header, 'no-num') or (textContent (header) [0 : 9].lower () == 'appendix ')) :