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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -