4章

h = [1, 2]
for i in h:
    print(i)

6章

for n in range(1, 10):
    print(n, " の段 ")
        for i in range(1,10):
            print(n * i, end=' ')
    print()