def draw_triangle(sign, length):
for count in range(1, length + 1):
print(sign * count)
draw_triangle('*', 10)
def draw_triangle(rows=11):
l1 = "*"
for count in range(1, rows + 1):
print(l1 * count)
draw_triangle()
код должен выводить:
*
**
***
****
*****
******
*******
********
*********
**********