I want to add some indents to my triangle.
My triangle starts from the left side, however, I want to move it to the right.
Here is my code:
n = int(input('Enter number of rows:'))
for i in range(n):
for j in range(i,-1,-1):
print(n-j,end=' ')
print()
Sample output:
Enter number of rows:3
3
2 3
1 2 3