Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python iterate through lists

list_1 = [1, 2, 3, 4]
list_2 = ['a', 'b', 'c']

for i, j in zip(list_1, list_2):
    print(i, j)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #iterate #lists
ADD COMMENT
Topic
Name
3+5 =