Build the rows
The outer loop counts upward through five rows, while the inner loop checks every column in the wide grid.
The inward-moving diagonal arms show 1 through 5 according to their current row.
The outer loop counts upward through five rows, while the inner loop checks every column in the wide grid.
Matching diagonal positions print x; the left marker moves right and the right marker moves left after each row.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.