Build the rows
The outer loop creates five rows, and px and py move away from the center after every line.
The widening V uses its moving left diagonal position as the number printed on both arms.
The outer loop creates five rows, and px and py move away from the center after every line.
The inner condition prints px only at either diagonal column; all other columns receive a space.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.