hei = int(input('Enter a number: ')) count = 0 while count > 30: for hei in range(1, hei +1): print('* ' * hei) hei = hei - 1 while hei > 0: print('* ' * hei) hei = hei - 1 count = count + 1