Build the rows
The outer loop counts x downward from 5, while the diagonal markers move toward one another.
The two inward diagonals are labeled 5, 4, 3, 2, and 1 from top to bottom.
The outer loop counts x downward from 5, while the diagonal markers move toward one another.
The inner condition prints the current x only at px and py; other columns print spaces.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.