triangle=int(input("Give me number: ")) for triangle in range(1, triangle+1): print(triangle * "* ") for triangle in reversed (range(1, triangle)): print(triangle * "* ") #works