Build the rows
The outer loop uses x from 1 to 5, so x also represents the number of stars required on the current row.
The star rows grow from one star to five, forming a simple increasing triangle.
The outer loop uses x from 1 to 5, so x also represents the number of stars required on the current row.
The inner loop runs x times and prints one star each time; its length grows with every outer-loop pass.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.