Build the rows
The outer loop moves through positive and negative x values; abs(x) gives matching row lengths on either side.
The rows grow from 3 to 0123 at the center, then repeat in reverse order on the lower half.
The outer loop moves through positive and negative x values; abs(x) gives matching row lengths on either side.
The inner y counter starts at abs(x) and counts up to 3, so the center row includes 0, 1, 2, and 3.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.