Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

for loop pattern in python stack overflow

v = 1
lines = 4
for i in range(lines):
    for j in range(i):
        print(v, end=' ')
        v += 1
    print( )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #pattern #python #stack #overflow
ADD COMMENT
Topic
Name
1+2 =