Trying to print a number triangle that does the following: numTri(6)
1
23
456
Edit:(all new line) What I have so far:
def numTri(n):
a = 0
for x in range(1,n+1):
a = 10*a + x
print a
Any hints? I don't want the answer. Some guidance would be well appreciated.