n=int(input("Podaj długość podstawy trojkata: ")) for i in range (n + 1): print(i * "x")
6
Podaj długość podstawy trojkata: x xx xxx xxxx xxxxx xxxxxx
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!