ShriRam Changed status to publish August 21, 2023
s= int(input(“Please enter the number of rows : “))
# Asking user for the number of rows to create the outer loop
for t in range(0,s):
# According to the outer loop, values will be changing
# The number of columns or the inner loop is given below
for a in range(0,t+1):
# for simple pyramid pattern using stars as a symbol
print(“* “,end=””)
# after each row, we must end the line
print()
ShriRam Changed status to publish August 21, 2023