Build the rows
The outer loop reduces the leading spaces as the pyramid grows from top to bottom.
A centered alphabet pyramid repeats A once, B three times, C five times, then continues through E.
The outer loop reduces the leading spaces as the pyramid grows from top to bottom.
The odd-width counter inc controls repetitions, and char advances by one so each new row uses the next letter.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.