I would like to create this photo in python!
*
**
***
****
*****
******
*******
********
*********
**********
I introduced this:
x=1
while x<10:
print '%10s' %'*'*x
x=x+1
Which, unfortunately, creates something consisting of the correct number of points, like the image above, but each of these stars is divided at a distance from each other, and is not justified as a whole as a whole.
Someone has a smart mind, how can I achieve what I want?
source
share