[Solved] Data structure in python 2.7 [duplicate]
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 solved Data structure in python 2.7 [duplicate]