I have a set of initial variables from a->i, a full list of variables, a separate list of integer values and a set of lists made from subsets of the initial variables:
a=0
b=0
...
i=0
exampleSubList_1 = [c, e, g]
fullList = [a, b, c, d, e, f, g, h, i] #The order of the list is important
otherList = [2, 4, 6, 8, 10, 12, 14, 16, 18] #The order of the list is important
I want my program to read an input exampleList_X and find its corresponding index entry in fullList, and use that index number to output the corresponding value in otherList. For example...
exampleList_1[0]
#Which is c
#It should find index 2 in fullList
#Entry 2 in otherList is the value 6.
#So it should output
6
Is this possible? I would be willing to use tuples/dictionary is required.
In the interest of clarity, this is for a Raspberry Pi noughts and crosses game project using LEDs. c, e and g correspond to the win condition of the diagonal from top right to bottom left, and otherList corresponds to the pin on the Raspberry Pi which sends out a current to light up the LED.