for i in [1, 2, 3]:
    print('첫 번째 반복문 i =', i)
    for j in [1, 2]:
        print('두 번째 반복문 j =', j)

# 1 ~ 3 세로
for i in range(1, 4):
    for j in range(1, 10):
        print(i, '*', j, '=', i*j)
    print('\n')

# 1 ~ 3 가로
for i in range(1, 10):
    for j in range(1, 4):
        print(j, '*', i, '=', j*i, end = '\t')
    print()

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: