I\'m wondering if there\'s an easy way to do the following in Python 3.x. Say I have two lists structured as follows:
list_a = [(1,2), (1,2), (1,2), ...] lis
You just need parentheses:
list_a = [(1,2), (1,2), (1,2)] list_b = [3, 3, 3] for (a, b), c in zip(list_a, list_b): print(a, b, c)
Result:
1 2 3 1 2 3 1 2 3