Might be a stupid question but I am not even sure how to ask it in a search. Been searching for quite some time on how to do this, seems like something that's quite basic that I have somehow just glossed over at some point!
So, say I have a group of lists:
List_1 = [1,2,3]
List_2 = [4,5,6]
List_3 = [7,8,9]
List_4 = [10,11,10]
I want to be able to create something like:
SelectList = 0
for items in List_x:
List_x.append(y)
SelectList = SelectList + 1
etc etc
And finally what is the terminology used for this kind of thing?
edit:
Looks like from the comments already what I am asking is possible but not in the way I thought it was in my head.
What I have is a some code that is very very very long just do the fact that it is arranged like:
for item in list_1:
thing1 = dict1.get('item')
test1[1].append(dict1.get('Bla'))
for item in list_2:
thing1 = dict2.get('item')
test2[1].append(dict2.get('Bla'))
for item in list_3:
thing3 = dict3.get('item')
test1[3].append(dict3.get('Bla'))
and was hoping there was a way to generate this like:
for item in list_x:
thingx = dictx.get('item')
thingx = dictx.get('item')
x = x + 1