Build the rows
The outer counter x chooses A through E and determines how many copies belong on the row.
Each row repeats its own letter, from one A to five Es, with leading spaces forming a right edge.
The outer counter x chooses A through E and determines how many copies belong on the row.
The first inner loop prints alignment spaces; the next repeats chr(x + 64) for the row length.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.