dla wzoru pętli w stosie Pythona

v = 1
lines = 4
for i in range(lines):
    for j in range(i):
        print(v, end=' ')
        v += 1
    print( )
Careful Caiman