how l!=row works in my double pyramid code?

Viewed 15

how l!=row works in my double pyramid code ?the output

# double pyramid pattern
row=6
for i in range (0,row+1):
    for j in range (0,row-i):
       print(chr(j+65),end=" ")
    for k in range (0,2*i-1):
        print(end="  ")
    for l in range (row-1-i,-1,-1):
        if l!=row-1:
            print(chr(l+65),end=" ")
    print()
    
0 Answers
Related