nums = 6
# outer loop
for i in range(1,nums):
    # nested loop
    for j in range(i):
      print(i, end=' ') 
    for i in range(i+1,nums):
      print(i, end=' ')
    print('')
4e9c8affe3fbd3252ac03e9fc019301a31311171
<mask token>

<mask token>
for i in range(1, nums):
    for j in range(i):
        print(i, end=' ')
    for i in range(i + 1, nums):
        print(i, end=' ')
    print('')

nums = 6
for i in range(1, nums):
    for j in range(i):
        print(i, end=' ')
    for i in range(i + 1, nums):
        print(i, end=' ')
    print('')

nums = 6
# outer loop
for i in range(1,nums):
    # nested loop
    for j in range(i):
      print(i, end=' ') 
    for i in range(i+1,nums):
      print(i, end=' ')
    print('')