#菱形即一个正三角形,一个倒三角形
#正三角形
for i in range(10):
for j in range(i,10):
print(end=" ")
for k in range(10-i,10):
print("*",end=" ")
print(" ")
#倒三角形
for n in range(10):
for m in range(10-n,10):
print(end=" ")
for l in range(n,10):
print("*",end=" ")
print(" ")