I have the following list of lists:
list_sample = [[0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6], [0.021, 0.021, 0.021, 0.021, 0.021, 0.021, 0.021], [0.022, 0.022, 0.022, 0.022, 0.022, 0.022, 0.022],...]
I'd like to extract each list and attribute it to another list such as:
for i,line in enumerate(list_sample):
if i==0:
Z_level=line
if i==1:
XD1=line
if i==2:
XD2=line
.....
Is there a way to make this more efficiently? Thanks