{{{~cpp def xorTriangle(current, lineNum, list): newList = [] for i in range(0, current) : if i==0 or i==current-1 : newList.append(1) else : newList.append( list[i-1]^list[i] ) print newList if current