Input Format
A single line containing integer, .
Constraints
Output Format
Print  lines as explained above.

hackerrank triangle quest problem solution in python programming

Problem solution in Python 3 programming language.

for i in range(1,input()): 
    print( i * 10**i / 9)

Second solution

for i in range(1,int(input())):
    print([0122333444455555666666777777788888888999999999][i])

Problem solution in Python 2 programming language.

for i in range(1,input()): 
    print  i * 10**i / 9