zip to a dictionary : Zip : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Zip »

 

zip to a dictionary


keys = ['A''B''C']
vals = [135]


print zip(keys, vals)

D2 = {}
for (k, vin zip(keys, vals): D2[k= v
print D2



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Zip