I will like to know if I can identify the position of similar values in 2 lists and use the position identified the value in a 3rd list.
v= [100,200,300,400,500,600,700,800,900,1000,1100]
x= [67,56,89,21,90,54,38,93,46,17,75]
j= [200,500,600]
I want the code to identify that value of j can be found in v[1], v[4] and v[5], and use the position of v[1], v[4] and v[5] to obtain/return the value of x[1],x[4] and x[5]. So far, I have tried:
h = set(v)&set(j)
print(h)