I have to use a FOR loop like this
x=0
for i in range(22):
SOME OPERATION
And than store the value of operation in a list like [0,0,0,0,0]
depending upon the OPERATION results +1 will be done to any of 5 values in list.
The problem is that I need a list for every iteration. Could you please help me with naming/initializing a list with name like list1, list2 and so on till list 22. SO that I can keep on +1 to list at any of five values
AK
If you need a group of named lists then it sounds like you want a dictionary:
If you’d rather do it with a list of lists: