Newbie question: I have 2 lists:
# The first one is a list of lists:
list_a = [[1,5,3],[4,2],[2,3,3,5],[2,3,1]]
# The second one is a list of strings:
list_b = ['a','b','c','d','e']
The question is: How can I create a new list list_c, that looks like this?
list_c = [['a','e','c'], ['d','b'], ['b','c','c','e'],['b','c','a']]
So basically, what I need to do is some sort of mapping out the values of list_a which represents the indices of list_b.
I tried doing nested for loops, but I'm really confused.
list_a = [[0,4,2],...I am not suggesting that you edit the question now, as this would break answers that have already been posted, but something to consider in future.