Say you have 3 lists
List1 = [['_', '_', '_'], ['_', '_', '_'], ['_','_','_']]
List2 = [['Test', 'Word', 'Sudo'], ['Fu', 'Lu', 'Shou'], ['Ham', 'Spam', 'Eggs']]
List3 = [3, 5, 7,]
Using the values from List3
, I'd like to transfer 'Fu'
from List2[0][2]
into List1[0][2]
, because the first value of List3
is a 3, which means take the 3rd value (counting from 0 it's list2[0][2]) from List2
and place it into the same spot as List1
The final result, using the other values in List3
, should be:
List1 = [['_', '_', 'Fu'], ['_', 'Shou', '_'], ['Spam','_','_']]
I've been at it for a few hours but can't get it to work!!
How is this done?