Hy, I am fairly new to python. I am stuck with problem which is below explained, We have two lists say
A = [0,3,4,6,7] #indices
B = [1.2,5,1.3,0.5,7,0.6,0.43,5,3,6,4,1,5,7,4] #values
where list A elements are actually indices of list B which I want to access and store in new list say C.
so my list C should be
C = [1.2,0.5,7,0.43 ,5]
And what if I have array instead of list? Thank you for your time.....