Answer:
there a two loops,
1. for loop
2. while loop
using a for loop
for i in range(6):
print("* " * i)
for i in range(4, 0, -1):
print("* " * i)
using a while loop
i = 0
while i < 6:
print("* " * i)
i += 1
while i > 0:
print("* " * i)
i -= 1
hope this helps!