The problem is that I'm supposed to make a pyramid which reduces in size till reaching zero.
So far I can easily create one but I'm not sure how to make each version smaller than the last.
1 2 3 4 5 6 |
base_size = input ( "base_size:" ) base_size = int (base_size) for r in range (base_size): for c in range (r + 1 ): print ( '*' ,end = '') print () |