value = int(input("Enter a number:")) write = 1 for value in range( 1,value ) : print( write * "*" ) write = write + 1 for value in range(-1, value) : print( write * "*" ) write = write -1