I have lists inside the dictionary:
Number_of_lists=3
My_list={}
for j in range(1,Number_of_lists+1):
My_list[j]=[(x,y,z)]
Number_of_listsis a user-defined variable. Without knowing in advance the value set by the user, I would finally like to have a combined list of all dictionary lists. For example, if Number_of_lists=3the corresponding lists My_list[1]=[(1,2,3)], My_list[2]=[(4,5,6)], My_list[3]=[(7,8,9)]the result will be as follows:
All_my_lists=My_list[1]+My_list[2]+My_list[3]
where:
All_my_lists=[(1,2,3),(4,5,6),(7,8,9)].
So what I'm trying to do is automate the above procedure for all possible:
Number_of_lists=n #where n can be any positive integer
I have lost a little so far trying to use an iterator to add lists and always fail. I am a beginner python, and this is my hobby, so if you answer, please explain everything in your answer, I do this to find out, I do not ask you to do my homework :)
EDIT
@codebox (. ) , My_List, , , . , - .