n=int(input("Enter the maximum number"))
for i in range(1,n+1):
for j in range(0,i):
print (i,end=" ")
print(" ")
To develop from within
n=int(input("Enter the maximum number"))
for i in range(1,n+1):
for j in range(0,i):
print (i,end=" ")
print(" ")