I have a list index = ['2', '3', '1', '5', '4', '6'] and there is also another list feature= ['a', 'b', 'c', 'd', 'e', '

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

I have a list index = ['2', '3', '1', '5', '4', '6'] and there is also another list feature= ['a', 'b', 'c', 'd', 'e', '

Post by answerhappygod »

I have a list index = ['2', '3', '1', '5', '4', '6']
and there is also another list feature= ['a', 'b', 'c', 'd','e', 'f']
I want to print a new feature list which have the order same tothe index list. e.g the result should be new_feature=['b' , 'c','a', 'e' , 'f' ]
how to implement in python?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply