1 ''' 2 ******* 3 ***** 4 *** 5 * 6 *** 7 ***** 8 ******* 9 ''' 10 11 n = 7 12 e = -(n//2) 13 for i in range(e,1-e):# -3 3 14 i = -i if i < 0 else i 15 print((3 - i) * ' ', + (2 * i + 1) * '*')
1 ''' 2 ******* 3 ***** 4 *** 5 * 6 *** 7 ***** 8 ******* 9 ''' 10 11 n = 7 12 e = -(n//2) 13 for i in range(e,1-e):# -3 3 14 i = -i if i < 0 else i 15 print((3 - i) * ' ', + (2 * i + 1) * '*')