Build the rows
The outer counter runs through positive and negative values; abs(x) makes the indentation grow again after the center.
The star rows widen toward the middle and narrow afterward, with spaces showing the hourglass shape.
The outer counter runs through positive and negative values; abs(x) makes the indentation grow again after the center.
The star loop uses size and abs(x) as its bounds, so each row gains stars toward the middle and loses them below it.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.