I would like to generate lists whose names include the iterator. Something like:
for i in range(3):
list_{here is the number}=[i,i+2,i+10]
The desired output:
>>list_0
[0,2,10]
>>list_1
[1,3,11]
>>list_2
[2,4,12]
Thanks for any tips
Look into dictionary comprehension:
result = {f'list_{i}': [i, i + 2, i + 10] for i in range(3)}
Is this what you want?
[[i,i+2,i+10] for i in range(3)]