Build the rows
The outer loop uses ph as the height; the first space loop centers the left pyramid and the middle loop sets the gap.
Two star pyramids widen side by side while the space between them shrinks toward the bottom.
The outer loop uses ph as the height; the first space loop centers the left pyramid and the middle loop sets the gap.
The inc counter grows by two, so both sides gain stars on each row while the central spacing gets smaller.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.