Build the rows
The outer loop increases x while a separate loop removes leading spaces; inc grows by two each row.
The rows mirror their digits around zero, growing from 0 to 1-0-1 and wider sequences.
The outer loop increases x while a separate loop removes leading spaces; inc grows by two each row.
For every z position, abs(z - x) calculates its distance from the center, so the values mirror on both sides.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.