python - Loop through list of dictionaries simlutaneously -


i have 2 lists of dictionaries like:

a=[{"name":"jd","lat":12.1231,"long":10.123},{"name":"wq","lat":-1.21313,"long":7.31}]   b=[{"name":"jd","time":datetime.datetime(1,2,3)},{"name":"wq","time":datetime.datetime(4,5,6)}] 

i want loop through 2 simultaneously:

for i,j in a,b:       

i

valueerror: many values unpack

also

for i,j in zip(a,b):           

i not output @ all.
zip(a,b) empty list.
how should go this?

have @ zip

for i,j in zip(a,b): 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -