Hey guys! I have the following thing to do:
I have five lists.
l1 = [1,2,3,4,5,6,7,8,9,10]
l2 = [1,2,3,4,5,6,7,8,9,10]
l3 = [1,2,3,4,5,6,7,8,9,10]
l4 = [1,2,3,4,5,6,7,8,9,10]
l5 = [1,2,3,4,5,6,7,8,9,10]
I need all possible list addtions of those lists, in which the values at the respective index will be added. In total there should be 31 solution lists possible: 5 singular, 10 doubles, 10 triples, 4 quadruples, 1 quintuple.
An example for a double list would in this case be: l1_l2 = [2,4,6,8,10,12,14,16,18,20]
(Doing all of this manually would take forever I guess.)
After that I want to be able to use a list by setting an integer, say I = 10 automatically grabs list 10 out of my solutions. In the end, depending on the integer value as an input (from 1-31). However, I want to be able to access each list individually, without having to create 31 list names that I fill manually by additions and call manually. I only have the integer option to call a list and work with it.
Is that possible?
I would be very happy if you could help me with this. I think there must be a much faster and easier solution instead of writing each list individually. Also, I might add a list at the beginning, giving me even more possible combination results.
Looking forward to your help!!!