Build the rows
The outer loop prints fewer leading spaces on every row to keep the widening shape centered.
Each centered row counts backward through letters, growing from A to CBA and then EDCBA.
The outer loop prints fewer leading spaces on every row to keep the widening shape centered.
The inner counter starts at inc and moves down to 1; chr(z + 64) converts that countdown into letters.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.