Question: Create a diamond shape based using loops python. I was able to make the triangle but I cant figure out how to finish it to

Create a diamond shape based using loops python. I was able to make the triangle but I cant figure out how to finish it to make a diamond.
for a1 in range(1,30):
for a3 in range (29-a1,0,-1):
print("", end ='')
for a2 in range(1,a1+1):
print("*", end='')
print()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!