i have complete the code to print the diamond star. But now i need to use if else statement once the 7 star complete in row 4 to use if statement. after that the row will start from 5 print 5 star and each row the 2 star will decrease on each row.
Below is the code.
bs=3
s=1
for row in range(4):
for b in range(bs):
print("b", end=" ")
for star in range(s):
print("*", end=" ")
print()
bs=bs-1
s=s+2
bs=1
s=5
for row in range(3):
for b in range(bs):
print("b", end=" ")
for star in range(s):
print("*", end=" ")
print()
bs=bs+1
s=s-2