how to iterate through two lists in python and match up corresponding items -


this question has answer here:

i have 2 lists:

nums = [41.25, 38.75, 43.25, 37.25, 37.5, 43.75] sats = [g01, g03, g04, g11, g28, g32] 

note: first item in nums corresponds first item in sats, second item in nums corresponds second item in sats etc..

i want loop through nums , value less 39.00, want corresponding item sats?

can help?

for num,sat in zip(nums, sats):     if num<39:         # stuff 

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -