I have a tuple of lists. Each list in the tuple has the same number of elements. How can I iterate over it in a for loop
Ex:
tupleList = ([1,2,3], ['label1', 'label2', 'label3'])
for (val, label) in <something>:
print val, label
Should output:
1, label1
2, label2
3, label3
NOTE: This list of tuples could contain more than two lists.
PS: For those who have opted this as a duplicate, please check the responses for the correct solution. It's different from iterating through two separate lists.