I’m trying to replace items in 1 list of lists with items from another list of lists.
alist = [[1,2,3], [4,5,6], [7,8,9]]
blist = [[a,b,c], [d,e,f], [g,h,i]]
Basically, I want to replace the items in alist with it’s blist counterpart. For example, if someone chose 1 in alist, I want to replace it with the same index from blist which would be a.
alist = [[a,2,3], [4,5,6], [7,8,9]]
Any suggestions?
See it working online: ideone