Answers for "for loop pattern in python stack overflow"

0

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( )
Posted by: Guest on May-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language