Python Descending Repeated-Letter Square (Pattern 8)

Python Code
for x in range(69, 64, -1):
    for y in range(1, 6):
        print(chr(x), end="")
    print()


Another way

for x in 'EDCBA':
 for y in 'EDCBA':
  print(x,end="")
 print()


Output:

Output of the Python Descending Repeated-Letter Square pattern
BEGINNER WALKTHROUGH

How the Descending Repeated-Letter Square works

The rows repeat E, D, C, B, and A respectively, with each selected letter appearing five times.

01

Build the rows

The outer loop counts backward through the character codes for E to A and selects one letter per row.

02

Choose what each row prints

The inner loop prints chr(x) five times; the character conversion turns the row counter into a letter.

03

Keep the output aligned

The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.