size = int(input("Enter a number")) for number in range (1, size + 1): print('*' * number) for number in range (size -1, 0, -1): print('*' * number)