Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python iterate over tuple of lists

tuple_list = ([1,2,3], ['label1', 'label2', 'label3'])
for val, label in zip(*tuple_list):
     print(val, label)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #iterate #tuple #lists
ADD COMMENT
Topic
Name
4+5 =