Normally in order to store result in several lists in python, i create before the loop the corresponding empty lists.
A = []
B = []
c = []
D = []
E = []
F = []
for i in range(100):
# do some stuff
i there a method to create the lists in a single code line (or few)?
If the lists are logically similar (I hope so, because one hundred different variables is violence on programmer), create a dictionary of lists:
This creates a dictionary:
where you can access individual lists:
or work on all of them at once:
The further advantage over individual lists is that you can pass your whole dict to a method.