how do you manipulate the for loop to display an output just like
5
54
543
5432
54321
I tried coding like
n=6
for i in range(0,n):
for j in range (n,0):
print(j,end="")
print(i)
but it would print this
0
1
2
3
4
5
Shouldn't it print first the 5 in loop j first