4.2-6 複数のイテレラブルの要素をつなぐ
zip関数の構文 zip(*iterable)
w_listA = ["apple", "grape", "banana"]
w_listB = [300, 200, 500]
for a, b in zip(w_listA, w_listB):
print(a, b)
->
apple 300
grape 200
banana 500
zip関数の構文 zip(*iterable)
w_listA = ["apple", "grape", "banana"]
w_listB = [300, 200, 500]
for a, b in zip(w_listA, w_listB):
print(a, b)
->
apple 300
grape 200
banana 500