Build the rows
The outer loop creates five rows across nine columns, and px and py move away from the center after each line.
The first row is filled with stars; later rows open a larger blank center while keeping stars at both edges.
The outer loop creates five rows across nine columns, and px and py move away from the center after each line.
Positions between px and py print spaces; positions outside that interval print stars, so the hollow region widens downward.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.