for i in range(1, 6): for j in range(5 - i): print(" ", end="") for f in range(1, i+1): print(i, end="") print()
Standard input is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!