私の解答
a = [6, 5, 4, 3, 2, 1]
b = [3, 1, 8, 8, 1, 3]
for i in range(5):
print(a[i],end=" ")
print(a[5])
for j in range(5):
print(b[j],end=" ")
print(b[5])
私の解答はカッコ悪いですね。。。
解答例
li = [[6, 5, 4, 3, 2, 1], [3, 1, 8, 8, 1, 3]]
for i in range(len(li)):
for j in range(len(li[i])):
print(li[i][j], end="")
if j < len(li[i]) - 1:
print(end=" ")
else:
print()