companies=['Python DS','PythonSoft','Pythzon','Pybook']
Data=[[12.87,13.23,11.42,13.10],[23.54,25.76,21.87,22.33],[98.99,102.54,97.21,100.065],[203.63,207.54,202.43,205.24]]
data_dict={}
for i in companies:
for j in Data:
data_dict[i]=j
print(data_dict)
Output:
{'Python DS': [203.63, 207.54, 202.43, 205.24], 'PythonSoft': [203.63, 207.54, 202.43, 205.24], 'Pythzon': [203.63, 207.54, 202.43, 205.24], 'Pybook': [203.63, 207.54, 202.43, 205.24]}
I want to link each element of companies to each element of Data and store as a list.