Python Centered Descending-Number Diamond (Pattern 60)

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

Output:

Output of the Python Centered Descending-Number Diamond pattern
BEGINNER WALKTHROUGH

How the Centered Descending-Number Diamond works

Each indented row counts down from 3 toward its edge, reaching 3210 at the widest point.

01

Build the rows

The outer counter runs above and below zero; abs(x) controls both the indentation and the row width.

02

Choose what each row prints

The inner z loop counts down from size to abs(x), printing one more number as each row approaches the center.

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.