print(list(map(lambda n: ''.join(map(str, range(1, n + 1))), range(1, 10))))
Standard input is empty
['1', '12', '123', '1234', '12345', '123456', '1234567', '12345678', '123456789']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!