目次

zip()

a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
b = [1, -1, 1, -1, 1, -1, 1, -1, 1, -1]
print(list(zip(a, b)))
print(list(zip(*[a, b]))
print(list(zip(*(a, b)))
print(list(enumerate(b))