ShriRam Changed status to publish August 21, 2023
s = int(input(“Please enter the number of rows : “))
t = 0
# For downward patterns, we always prefer reversed loop
for i in range(s, 0, -1):
#As the iteration of the line increase, the ‘t’ will also.
t = t + 1
for j in range(1, i + 1):
print(t, end=’ ‘)
print()
ShriRam Changed status to publish August 21, 2023