Build the rows
The outer loop counts down through five rows, and the leading spaces increase as each row shortens.
The rows count down from E to A, then D to A, C to A, and so on as they shift right.
The outer loop counts down through five rows, and the leading spaces increase as each row shortens.
The inner z counter starts at x and counts down to 1; chr(z + 64) converts each value to a letter.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.