num_rows = int(input("Enter the number of rows: "));
k = 1
for i in range(0, num_rows):
for j in range(0, k):
print("* ", end="")
k = k + 1
print()
Note: Need to be arranged in compiler after copied
OutPut:
Enter the number of rows: 5
*
* *
* * *
* * * *
* * * * *
*
* *
* * *
* * * *
* * * * *