Python Descending-Letter Diamond (Pattern 57)

Python Code
size = 3
for x in range(size, -(size + 1), -1):
    for y in range(size, abs(x) - 1, -1):
        print(chr(y + 65), end="")
    print()

Output:

Output of the Python Descending-Letter Diamond pattern
BEGINNER WALKTHROUGH

How the Descending-Letter Diamond works

Letter rows widen toward a central DCBA sequence and then shorten symmetrically.

01

Build the rows

The outer loop spans both halves of the shape, and abs(x) determines how many letters appear on each line.

02

Choose what each row prints

The inner counter counts down from 3 to abs(x); adding 65 converts the sequence to letters D through A.

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.