you can follow this step
A single vertical line of stars:

A right-angled triangle of stars:

A square of stars:

show in output:

you can follow this step
A single vertical line of stars:
A right-angled triangle of stars:
A square of stars:
show in output: