print('\n'.join(str(x)*x for x in range(1,6)))
Standard input is empty
1 22 333 4444 55555
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!