[Solved] Data structure in python 2.7 [duplicate]
[ad_1] zipping names with list_price does most of the work for you: result = [] for name, prices in zip(names, list_price): result.append({“name”: name, “size_price”: prices, “size”: size}) 1 [ad_2] solved Data structure in python 2.7 [duplicate]