num = int(input("Enter a number: ")) for i in range(num): k = i + 1 print(k * " *") for l in range(num - 1, 0, -1): print(l * " *")