#try to avoid input function a = int(input("Enter Number of rows :")) b = 1 for i in range(a,0,-1): con = "" for j in range(i): con = con+" "+str(b) print(con) b = b+1
Click the run button. Try to avoid input() function.