Answer:
for i in range(1, 10):
for j in range(i):
print("*", end=" ")
print("")
Step-by-step explanation:
Create a nested for loop. First loop represents the rows and the second one represents the columns. Since there are 9 rows, first loop iterates 9 times. Since each row has number of asterisk that corresponds to value of i, the second loop iterates "i" times for each iteration of the first loop and prints the asterisks. There is an empty print statement inside the second loop that makes sure that the code starts with a new line after each iteration of the second loop.