st = '*' blk = ' ' for i in range(10): str_out = blk*(9-i)+st*i+st*i+blk*(9-i) print(str_out)
**
****
******
********
**********
************
**************
****************
******************
st = '*' blk = ' ' for i in range(10): str_out = blk*(9-i)+st*i+st*i+blk*(9-i) print(str_out)