Build the rows
The outer loop creates matching upper and lower halves; abs(x) determines the leading spaces and sequence start.
The centered lines grow toward ABCD and then shorten in the same order.
The outer loop creates matching upper and lower halves; abs(x) determines the leading spaces and sequence start.
The inner counter rises to 3, and chr(z + 65) converts each value to a letter from A through D.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.